mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-12 02:29:07 +08:00
4468d7be57
* [cli11] Update to version 1.9.0 * [cli11] Update to version 1.9.0 * [cli11] Modify options
26 lines
768 B
CMake
26 lines
768 B
CMake
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO CLIUtils/CLI11
|
|
REF dd0d8e4fe729e5b1110232c7a5c9566dad884686 #version 1.9.0
|
|
SHA512 dccee89de994d17537b31db717d0f42cae8827a192067718641a6e9e3188f468047a86ce329781142b9c7a1216d5eedcfe975fdbd001f40005a8ab50e08470d9
|
|
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
|
|
)
|
|
|
|
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)
|