mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-18 03:47:50 +08:00
31b799f92c
* [mbedtls] update to 2.28.7 * [mbedtls] update to 2.28.7
39 lines
1.0 KiB
CMake
39 lines
1.0 KiB
CMake
set(VCPKG_LIBRARY_LINKAGE static)
|
|
|
|
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO ARMmbed/mbedtls
|
|
REF "v${VERSION}"
|
|
SHA512 b61dd319606c88c834b3a8e8f9f85e68a22b6b21ca177b340a972dfabe9efee984b8a9f6ed5d3b1829f229c689394e9f393b94efb38d82bda3a1e53d1e7a2861
|
|
HEAD_REF mbedtls-2.28
|
|
PATCHES
|
|
enable-pthread.patch
|
|
)
|
|
|
|
vcpkg_check_features(
|
|
OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
|
FEATURES
|
|
pthreads ENABLE_PTHREAD
|
|
)
|
|
|
|
vcpkg_cmake_configure(
|
|
SOURCE_PATH ${SOURCE_PATH}
|
|
OPTIONS
|
|
${FEATURE_OPTIONS}
|
|
-DENABLE_TESTING=OFF
|
|
-DENABLE_PROGRAMS=OFF
|
|
-DMBEDTLS_FATAL_WARNINGS=FALSE
|
|
)
|
|
|
|
vcpkg_cmake_install()
|
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
|
|
|
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|
|
|
|
if (VCPKG_TARGET_IS_WINDOWS AND pthreads IN_LIST FEATURES)
|
|
file(INSTALL ${CMAKE_CURRENT_LIST_DIR}/vcpkg-cmake-wrapper.cmake DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT})
|
|
endif ()
|
|
|
|
vcpkg_copy_pdbs()
|