mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-01 15:31:47 +08:00
28 lines
777 B
CMake
28 lines
777 B
CMake
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO wolfssl/wolftpm
|
|
REF v2.7.0
|
|
SHA512 1b3e1bbd9f6e35226ff30cc6de7631fb420343a2ae4c8849d1477314a5fe8a95b99800fa17e10a30a9894041142748d654c913a5c4f4dc9eaad3f5157e405276
|
|
HEAD_REF master
|
|
PATCHES
|
|
cmake-patch.diff
|
|
)
|
|
|
|
vcpkg_cmake_configure(SOURCE_PATH ${SOURCE_PATH}
|
|
OPTIONS
|
|
-DWOLFTPM_EXAMPLES=no
|
|
-DWOLFTPM_BUILD_OUT_OF_TREE=yes
|
|
OPTIONS_DEBUG
|
|
-DCMAKE_C_FLAGS='-DDEBUG_WOLFTPM'
|
|
)
|
|
|
|
vcpkg_cmake_install()
|
|
vcpkg_copy_pdbs()
|
|
|
|
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/wolftpm)
|
|
vcpkg_fixup_pkgconfig()
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|