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