2017-12-05 01:15:16 +00:00
|
|
|
include(vcpkg_common_functions)
|
2017-12-05 03:24:00 +00:00
|
|
|
|
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO google/re2
|
2019-05-09 00:51:44 +00:00
|
|
|
REF cd23be77c716bf75ebb3ddc07fa3ef0c943da6d2
|
|
|
|
SHA512 c307fc9294497dc3b4ae95db117f310e0db8f91a90c32bb316fe7e32414b2ade48264471e7a7bb0860aa9b0afe7dd460dadc552b1173ac35235ad3624c6f2ed5
|
2017-12-05 03:24:00 +00:00
|
|
|
HEAD_REF master
|
2017-12-05 01:15:16 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_configure_cmake(
|
|
|
|
SOURCE_PATH ${SOURCE_PATH}
|
2017-12-05 03:50:23 +00:00
|
|
|
OPTIONS -DRE2_BUILD_TESTING=OFF
|
2017-12-05 01:15:16 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_install_cmake()
|
2019-04-19 23:33:20 +00:00
|
|
|
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/re2 TARGET_PATH share/re2)
|
2017-12-05 01:15:16 +00:00
|
|
|
|
2018-12-05 03:18:56 +00:00
|
|
|
vcpkg_copy_pdbs()
|
|
|
|
|
2017-12-05 01:15:16 +00:00
|
|
|
# Handle copyright
|
|
|
|
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/re2 RENAME copyright)
|
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|