vcpkg/ports/re2/portfile.cmake

23 lines
683 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 2022-12-01
SHA512 783f856e6556ce60f0e9a15b2366cb4df21ca019cdc85ef7ad47a11d0345935300dede5da61892bdc77d2642da82ddc81b6670049eb87f357a64a9c684140ec9
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)
vcpkg_fixup_pkgconfig()
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")