2018-11-12 15:54:36 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO CLIUtils/CLI11
|
2024-03-26 06:30:22 +08:00
|
|
|
REF "v${VERSION}"
|
2024-05-22 18:30:50 +08:00
|
|
|
SHA512 fdb61c430f5b99a9495fda7f94bfc8d0fb5360c99beeccbcb3b8918713579aac97fa0dcbce296065d9043f141a538c505919c9810fd1d192661e8b48b6a2637a
|
2021-10-27 14:58:24 +08:00
|
|
|
HEAD_REF main
|
2024-05-22 18:30:50 +08:00
|
|
|
PATCHES
|
|
|
|
revert-1012-pkgconfig.diff
|
2018-11-12 15:54:36 +08:00
|
|
|
)
|
|
|
|
|
2021-09-08 22:55:21 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2018-11-12 15:54:36 +08:00
|
|
|
OPTIONS
|
2020-03-11 08:21:43 +08:00
|
|
|
-DCLI11_BUILD_EXAMPLES=OFF
|
|
|
|
-DCLI11_BUILD_DOCS=OFF
|
|
|
|
-DCLI11_BUILD_TESTS=OFF
|
2023-07-26 02:03:51 +08:00
|
|
|
-DCLI11_PRECOMPILED=ON
|
2024-08-20 00:49:42 +08:00
|
|
|
-DCMAKE_CXX_STANDARD=17
|
2018-11-12 15:54:36 +08:00
|
|
|
)
|
|
|
|
|
2021-09-08 22:55:21 +08:00
|
|
|
vcpkg_cmake_install()
|
2018-11-12 15:54:36 +08:00
|
|
|
|
2021-09-29 23:46:03 +08:00
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH share/cmake/CLI11)
|
2021-09-08 22:55:21 +08:00
|
|
|
vcpkg_fixup_pkgconfig()
|
2023-07-26 02:03:51 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include" "${CURRENT_PACKAGES_DIR}/debug/share")
|
2018-11-12 15:54:36 +08:00
|
|
|
|
2024-05-22 18:30:50 +08:00
|
|
|
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/include/CLI/CLI.hpp" "#pragma once" "#pragma once\n#ifndef CLI11_COMPILE\n#define CLI11_COMPILE\n#endif")
|
|
|
|
|
2024-03-26 06:30:22 +08:00
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
|