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-04-16 13:30:11 +08:00
|
|
|
REF def664c3046d6c1f2e643e0d64baf43c432e25c6
|
|
|
|
SHA512 0a71650948c04ff4514248674fee2d0510a9fff934e14a52c81bba1177b9667af52dd506755a146604dc2691748f826487e46425ee75d5ca97d774ccb2dc828c
|
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}
|
2017-12-05 11:50:23 +08:00
|
|
|
OPTIONS -DRE2_BUILD_TESTING=OFF
|
2017-12-05 09:15:16 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_install_cmake()
|
|
|
|
|
2018-12-05 11:18:56 +08:00
|
|
|
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)
|