vcpkg/ports/re2/portfile.cmake

24 lines
726 B
CMake
Raw Normal View History

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
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}
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
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)