vcpkg/ports/cli11/portfile.cmake
Patrik Huber 40c03b650f
[cli11] Update to v2.4.0 (#36589)
* Updated CLI11 version and hash to v2.4.0

* Ran vcpkg.exe x-add-version cli11

* Skip CLI11 build on UWP

CLI11's Unicode support doesn't build on UWP. As UWP is deprecated, it most likely won't be supported in the future.

* Removed cli11 from scripts/ci.baseline.txt

Co-authored-by: Kai Pastor <dg0yt@darc.de>

* Added supports: !uwp to ports/cli11/vcpkg.json

cli11 Unicode support doesn't work on UWP

Co-authored-by: Kai Pastor <dg0yt@darc.de>

* Updated versions/cli11.json

---------

Co-authored-by: Kai Pastor <dg0yt@darc.de>
Co-authored-by: Patrik Huber <p.huber@mimetrik.co.uk>
2024-02-07 12:39:54 -08:00

26 lines
781 B
CMake

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