2018-07-03 16:06:23 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO taocpp/pegtl
|
2021-01-19 16:46:00 +08:00
|
|
|
REF 3.2.0
|
|
|
|
SHA512 3ec457e37d87d95f3a89c550abbf611a1ce094c2f05f6d23086e70079a9cabddb4c75e9121e764ad1768845a39e62ab49ca658ffed0f09d0e9a0e36501a162ae
|
2018-07-03 16:06:23 +08:00
|
|
|
HEAD_REF master
|
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_configure_cmake(
|
|
|
|
SOURCE_PATH ${SOURCE_PATH}
|
|
|
|
PREFER_NINJA
|
|
|
|
OPTIONS
|
|
|
|
-DPEGTL_BUILD_TESTS=OFF
|
|
|
|
-DPEGTL_BUILD_EXAMPLES=OFF
|
2019-04-24 06:19:51 +08:00
|
|
|
-DPEGTL_INSTALL_DOC_DIR=share/pegtl
|
|
|
|
-DPEGTL_INSTALL_CMAKE_DIR=share/pegtl/cmake
|
2018-07-03 16:06:23 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_install_cmake()
|
|
|
|
|
|
|
|
vcpkg_fixup_cmake_targets(CONFIG_PATH share/pegtl/cmake)
|
|
|
|
|
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug)
|
|
|
|
|
|
|
|
# Handle copyright
|
2020-12-19 04:06:00 +08:00
|
|
|
file(RENAME ${CURRENT_PACKAGES_DIR}/share/pegtl/LICENSE ${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright)
|