vcpkg/ports/pegtl/portfile.cmake
Bill Avery 2247b397fa
[pegtl] Update to 3.2.6 for MSVC and GCC fixes (#24761)
* [pegtl] Update to 3.2.6 for compiler fixes

* vcpkg x-add-version --all

* Remove cppgraphqlgen from baseline, as suggested in https://github.com/microsoft/vcpkg/pull/24761#issuecomment-1129414611

Co-authored-by: Billy Robert O'Neal III <bion@microsoft.com>
2022-05-17 17:25:56 -07:00

26 lines
805 B
CMake

vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO taocpp/pegtl
REF e65017d398a3b733aedab70bb64b8055472d47aa
SHA512 05ca3754a9c1c94a205c6823e4442dca1f11a890aadd4b0c96f6ccd8946eec061c0a723bc67f8b57b074154e1ab1171bdcdd035926f55e42b5517b9d5ecae873
HEAD_REF 3.x
)
vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
OPTIONS
-DPEGTL_BUILD_TESTS=OFF
-DPEGTL_BUILD_EXAMPLES=OFF
-DPEGTL_INSTALL_DOC_DIR=share/pegtl
-DPEGTL_INSTALL_CMAKE_DIR=share/pegtl/cmake
)
vcpkg_cmake_install()
vcpkg_cmake_config_fixup(CONFIG_PATH share/pegtl/cmake)
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug")
# Handle copyright
file(RENAME "${CURRENT_PACKAGES_DIR}/share/${PORT}/LICENSE" "${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright")