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-19 06:40:03 +08:00
|
|
|
REF 98ad734aae9996a6dd1aa1fec72e800d621acd51
|
|
|
|
SHA512 e28a6b3428ca2714a48194f82f9d6ea4c56b3d4bc776bf3b9402bc081ca8d667f37f4ce98cd89ed1077998f945f1eebee1f501a1acdcb1fb16e741643bc8d8ab
|
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)
|