vcpkg/ports/re2/portfile.cmake

21 lines
630 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
2018-02-26 03:37:23 +08:00
REF bb093f12a450e4ce2be6bacadff01495cb17eab4
SHA512 42912068da6acfec33a417d68ad08d44b73f04f542660c6a44b25c5bc5cbece3c9f14a02271072ee47a695d4a5d813acda460c40899f37cf0ecaa220295d5bf3
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()
# Handle copyright
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/re2 RENAME copyright)
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)