vcpkg/ports/cli11/portfile.cmake

26 lines
768 B
CMake
Raw Normal View History

2018-11-12 15:54:36 +08:00
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO CLIUtils/CLI11
2020-09-04 02:32:27 +08:00
REF 2b059cbdbe844450e1675a5dda3cb8acb1147631 #version 1.9.1
SHA512 8b7999ae3692ccb7b324bef033ad4cedccbf720b904aa3aa8d07d1cbc8f09f4ecbd9701d2a50a6266f81fe877e30a63a3b6e07d746fa738291b07476405e866d
2018-11-12 15:54:36 +08:00
HEAD_REF master
)
vcpkg_configure_cmake(
SOURCE_PATH ${SOURCE_PATH}
PREFER_NINJA
OPTIONS
-DCLI11_BUILD_EXAMPLES=OFF
-DCLI11_BUILD_DOCS=OFF
-DCLI11_BUILD_TESTS=OFF
2018-11-12 15:54:36 +08:00
)
vcpkg_install_cmake()
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/CLI11)
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug ${CURRENT_PACKAGES_DIR}/lib)
# Handle copyright
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)