2019-02-02 02:04:22 +08:00
|
|
|
# header-only library
|
|
|
|
|
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO adishavit/argh
|
2024-03-12 04:35:56 +01:00
|
|
|
REF "v${VERSION}"
|
2022-04-19 18:07:38 +02:00
|
|
|
SHA512 66073718ef1fc31fbd0feb9daf366a2e28c759de44fb1882dc46a6d10f7a44635ae1155882dff916f55c51fad88bedebdfe361418f7669fac241feead68f2b5b
|
2019-02-02 02:04:22 +08:00
|
|
|
HEAD_REF master
|
|
|
|
)
|
|
|
|
|
2024-03-12 04:35:56 +01:00
|
|
|
set(VCPKG_BUILD_TYPE release)
|
|
|
|
|
2022-04-19 18:07:38 +02:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2019-02-02 02:04:22 +08:00
|
|
|
OPTIONS
|
|
|
|
-DBUILD_TESTS=OFF
|
|
|
|
-DBUILD_EXAMPLES=OFF
|
|
|
|
)
|
|
|
|
|
2022-04-19 18:07:38 +02:00
|
|
|
vcpkg_cmake_install()
|
2019-02-02 02:04:22 +08:00
|
|
|
|
2024-03-12 04:35:56 +01:00
|
|
|
set(CONFIG_PATH lib/cmake/argh)
|
|
|
|
if(EXISTS "${CURRENT_PACKAGES_DIR}/cmake")
|
|
|
|
set(CONFIG_PATH cmake)
|
2019-02-02 02:04:22 +08:00
|
|
|
endif()
|
2024-03-12 04:35:56 +01:00
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH "${CONFIG_PATH}")
|
2019-02-02 02:04:22 +08:00
|
|
|
|
2024-03-12 04:35:56 +01:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/share/doc" "${CURRENT_PACKAGES_DIR}/lib")
|
2019-02-02 02:04:22 +08:00
|
|
|
|
2024-03-12 04:35:56 +01:00
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
|