mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-31 05:03:22 +08:00
16070fffea
* [pegtl] Update to 3.2.0 release * Run x-add-version pegtl
27 lines
782 B
CMake
27 lines
782 B
CMake
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO taocpp/pegtl
|
|
REF 3.2.0
|
|
SHA512 3ec457e37d87d95f3a89c550abbf611a1ce094c2f05f6d23086e70079a9cabddb4c75e9121e764ad1768845a39e62ab49ca658ffed0f09d0e9a0e36501a162ae
|
|
HEAD_REF master
|
|
)
|
|
|
|
vcpkg_configure_cmake(
|
|
SOURCE_PATH ${SOURCE_PATH}
|
|
PREFER_NINJA
|
|
OPTIONS
|
|
-DPEGTL_BUILD_TESTS=OFF
|
|
-DPEGTL_BUILD_EXAMPLES=OFF
|
|
-DPEGTL_INSTALL_DOC_DIR=share/pegtl
|
|
-DPEGTL_INSTALL_CMAKE_DIR=share/pegtl/cmake
|
|
)
|
|
|
|
vcpkg_install_cmake()
|
|
|
|
vcpkg_fixup_cmake_targets(CONFIG_PATH share/pegtl/cmake)
|
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug)
|
|
|
|
# Handle copyright
|
|
file(RENAME ${CURRENT_PACKAGES_DIR}/share/pegtl/LICENSE ${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright)
|