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
|
2018-11-02 10:27:44 +08:00
|
|
|
REF d9cebde0175aa1ffd38aab9a395a038464d55ce7
|
|
|
|
SHA512 820ebc96f6cc583e50bdd637b8bf6b4e8ef6be5a74a49174bf845d037f0dd21ee3b1fbc220bc3cbbd6987205195b6c0990040f43da723f90038a20690a7553ff
|
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()
|
|
|
|
|
|
|
|
# Handle copyright
|
|
|
|
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/re2 RENAME copyright)
|
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|