vcpkg/ports/re2/portfile.cmake

22 lines
658 B
CMake
Raw Normal View History

2017-12-05 11:24:00 +08:00
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO google/re2
REF 2021-09-01
2021-10-29 16:22:51 +08:00
SHA512 d0e13ce3e345edf7a3927756269ef8670240e364e75af2386cd03870fea14d8c957db46ca6bf7000077acb1ef4244d8f3f77b654fe0d297d11c5100f3a380c5f
2017-12-05 11:24:00 +08:00
HEAD_REF master
2017-12-05 09:15:16 +08:00
)
2021-10-29 16:22:51 +08:00
vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
OPTIONS
-DRE2_BUILD_TESTING=OFF
2017-12-05 09:15:16 +08:00
)
2021-10-29 16:22:51 +08:00
vcpkg_cmake_install()
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/re2)
2017-12-05 09:15:16 +08:00
vcpkg_copy_pdbs()
2017-12-05 09:15:16 +08:00
# Handle copyright
2021-10-29 16:22:51 +08:00
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")