vcpkg/ports/pugixml/portfile.cmake

23 lines
651 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
REF v1.12.1
SHA512 c1a80518e8d7b21f2a15b2023b77e87484f5b7581e68ff508785a60cab53d1689b5508f5a652d6f0d4fbcc91f66d59246fdfe499fd6b0e188c7914ed5919980b
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()
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/pugixml)
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
file(INSTALL "${SOURCE_PATH}/LICENSE.md" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)