2018-07-03 10:06:23 +02:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO taocpp/pegtl
|
2024-10-18 13:16:53 +08:00
|
|
|
REF "${VERSION}"
|
|
|
|
SHA512 aecf9396edbdd65549603484d1841cd676b197d164ee2979ee5acaf657da4fa9ebc1a59fc8550cfa440ce27794cdc59cdf86a6521e4bda084c0600cb2c92f5cf
|
2022-05-17 17:25:56 -07:00
|
|
|
HEAD_REF 3.x
|
2018-07-03 10:06:23 +02:00
|
|
|
)
|
|
|
|
|
2021-09-29 17:39:07 +02:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2018-07-03 10:06:23 +02:00
|
|
|
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
|
|
|
)
|
|
|
|
|
2021-09-29 17:39:07 +02:00
|
|
|
vcpkg_cmake_install()
|
2018-07-03 10:06:23 +02:00
|
|
|
|
2021-09-29 17:39:07 +02:00
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH share/pegtl/cmake)
|
2018-07-03 10:06:23 +02:00
|
|
|
|
2021-09-29 17:39:07 +02:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug")
|
2018-07-03 10:06:23 +02:00
|
|
|
|
|
|
|
# Handle copyright
|
2022-03-02 14:50:51 -08:00
|
|
|
file(RENAME "${CURRENT_PACKAGES_DIR}/share/${PORT}/LICENSE" "${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright")
|