vcpkg/ports/pegtl/portfile.cmake

27 lines
815 B
CMake
Raw Normal View History

vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO taocpp/pegtl
REF 93b53c80058b2632a7260ab10ef2a06abcc0fc7f
SHA512 83b198465bca60b95c670aa72681aed0448025b506c6f6a196446608eb47ee9d8828c51ac8735caa2b2ec1e53d6a13bd6ad287a4abb8690a570036b90918907a
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/pegtl/copyright)