2018-11-12 10:54:36 +03:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO CLIUtils/CLI11
|
2022-11-02 19:48:15 +01:00
|
|
|
REF v2.3.1
|
|
|
|
SHA512 7805a3bff5ce443e93a005341680db1e618d5b0789a697daaac881f9ccac76f855ea3d43c9c5b13c33c2bf590138241df9e55d70e133562272f0859d8341af09
|
2021-10-27 14:58:24 +08:00
|
|
|
HEAD_REF main
|
2018-11-12 10:54:36 +03:00
|
|
|
)
|
|
|
|
|
2021-09-08 22:55:21 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2018-11-12 10:54:36 +03:00
|
|
|
OPTIONS
|
2020-03-11 08:21:43 +08:00
|
|
|
-DCLI11_BUILD_EXAMPLES=OFF
|
|
|
|
-DCLI11_BUILD_DOCS=OFF
|
|
|
|
-DCLI11_BUILD_TESTS=OFF
|
2018-11-12 10:54:36 +03:00
|
|
|
)
|
|
|
|
|
2021-09-08 22:55:21 +08:00
|
|
|
vcpkg_cmake_install()
|
2018-11-12 10:54:36 +03:00
|
|
|
|
2021-09-29 17:46:03 +02:00
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH share/cmake/CLI11)
|
2021-09-08 22:55:21 +08:00
|
|
|
vcpkg_fixup_pkgconfig()
|
2021-09-29 17:46:03 +02:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug")
|
2018-11-12 10:54:36 +03:00
|
|
|
|
|
|
|
# Handle copyright
|
2021-09-08 22:55:21 +08:00
|
|
|
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|