vcpkg/ports/pugixml/portfile.cmake

23 lines
609 B
CMake
Raw Normal View History

2018-04-06 08:43:49 +08:00
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO zeux/pugixml
2023-10-11 05:59:58 +08:00
REF "v${VERSION}"
SHA512 730d203829eb24d6e1c873f9b921ae97cf7a157fd45504151bc2e61adea5c536eaf33ff38c5ad61629b54a6686135ff1834a61102b4660fbb9ead4ecf20dfd34
2018-04-06 08:43:49 +08:00
HEAD_REF master
2017-02-27 17:17:59 +08:00
)
vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
OPTIONS
-DPUGIXML_BUILD_TESTS=OFF
2018-04-06 08:43:49 +08:00
)
2017-02-27 17:17:59 +08:00
vcpkg_cmake_install()
2017-02-27 17:17:59 +08:00
vcpkg_copy_pdbs()
2023-10-11 05:59:58 +08:00
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/${PORT})
vcpkg_fixup_pkgconfig()
2017-02-27 17:17:59 +08:00
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
2018-04-06 08:43:49 +08:00
2023-10-11 05:59:58 +08:00
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE.md")