vcpkg/ports/re2/portfile.cmake

23 lines
650 B
CMake
Raw Normal View History

2017-12-05 09:15:16 +08:00
include(vcpkg_common_functions)
2017-12-05 11:24:00 +08:00
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO google/re2
2019-01-10 04:31:28 +08:00
REF 90970542fe952602f42150c6e71d086f5afebcb3
SHA512 910e8ec958d559e2d71bcc701bdb2ac52e319025470a6690cdf86c10ec385789b81392f61f3d5586f4bc4b686714c05ebe67e5596978c0c6c2e5b4b3694cf8d9
2017-12-05 11:24:00 +08:00
HEAD_REF master
2017-12-05 09:15:16 +08:00
)
vcpkg_configure_cmake(
SOURCE_PATH ${SOURCE_PATH}
OPTIONS -DRE2_BUILD_TESTING=OFF
2017-12-05 09:15:16 +08:00
)
vcpkg_install_cmake()
vcpkg_copy_pdbs()
2017-12-05 09:15:16 +08:00
# Handle copyright
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/re2 RENAME copyright)
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)