vcpkg/ports/re2/portfile.cmake

24 lines
645 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 "${VERSION}"
SHA512 164953ae0cdd52efb0c327be3df8bb62532b37200e66adc3229c2dfdbd68cb794572559dbdf2d374e016c910a56712c88bbcca4caa683fdc55357af5716b1bf5
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/${PORT}")
vcpkg_fixup_pkgconfig()
2017-12-05 09:15:16 +08:00
vcpkg_copy_pdbs()
2017-12-05 09:15:16 +08:00
# Handle copyright
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")