vcpkg/ports/re2/portfile.cmake

23 lines
650 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-12-15 09:00:47 +08:00
REF e7c832772ec55f495927bfa4526d2fc17f0381be
SHA512 d79b5f5a5b97cc1f305abcf3799b00e335ba74c7c73b347b231e4796f45821398f952336dc94011fd8347de8c0e5af78b6cfa61387df002c1ba5e34954ec64c9
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()
vcpkg_copy_pdbs()
2017-12-05 09:15:16 +08:00
# Handle copyright
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/re2 RENAME copyright)
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)