vcpkg/ports/cli11/portfile.cmake
chausner d9f00e925a
[cli11] Update to 2.1.0 (#20304)
* Update cli11 to 2.1.0

* Update CI baseline

* Change version-semver to version for cli11

* Update git-tree version

Co-authored-by: chausner <chausner@users.noreply.github.com>
2021-09-29 08:46:03 -07:00

25 lines
706 B
CMake

vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO CLIUtils/CLI11
REF v2.1.0
SHA512 22c75e6b55d5320656ca2f65bf7c1dc82546fa65458f66a3d6401d002e83f12a0ee93a572637f5daa8daed9e0ce11fbf4aabf864caadc851f75bced63814ba10
HEAD_REF master
)
vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
OPTIONS
-DCLI11_BUILD_EXAMPLES=OFF
-DCLI11_BUILD_DOCS=OFF
-DCLI11_BUILD_TESTS=OFF
)
vcpkg_cmake_install()
vcpkg_cmake_config_fixup(CONFIG_PATH share/cmake/CLI11)
vcpkg_fixup_pkgconfig()
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug")
# Handle copyright
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)