mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-30 05:19:06 +08:00
0aae396aaf
Co-authored-by: heymamd1 <Michael.Heyman@jhuapl.edu>
33 lines
1.0 KiB
CMake
33 lines
1.0 KiB
CMake
set(OATPP_VERSION "1.1.0")
|
|
|
|
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
|
|
|
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO oatpp/oatpp-mbedtls
|
|
REF 847b9562ddcd40f1d2b340177028b3519fb1f58a # 1.1.0
|
|
SHA512 70559a33fb7a827714c353b158af8ef90fc5cd792e7f59bcf833ebd203874370e6f8f5b7a531497ea44d406cc515c42bfbef8d4f98e5e8074a141ba2ba78890b
|
|
HEAD_REF master
|
|
PATCHES find-mbedtls.patch
|
|
)
|
|
|
|
if (VCPKG_LIBRARY_LINKAGE STREQUAL dynamic)
|
|
set(OATPP_BUILD_SHARED_LIBRARIES_OPTION "ON")
|
|
else()
|
|
set(OATPP_BUILD_SHARED_LIBRARIES_OPTION "OFF")
|
|
endif()
|
|
|
|
vcpkg_configure_cmake(
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
|
PREFER_NINJA
|
|
OPTIONS
|
|
"-DOATPP_BUILD_TESTS:BOOL=OFF"
|
|
"-DBUILD_SHARED_LIBS:BOOL=${OATPP_BUILD_SHARED_LIBRARIES_OPTION}"
|
|
)
|
|
vcpkg_install_cmake()
|
|
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/oatpp-mbedtls-${OATPP_VERSION})
|
|
vcpkg_copy_pdbs()
|
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
|
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|