2019-06-13 07:31:18 +08:00
|
|
|
# header-only library
|
|
|
|
|
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO p-ranav/argparse
|
2023-11-09 01:41:57 +08:00
|
|
|
REF "v${VERSION}"
|
2024-08-08 08:27:46 +08:00
|
|
|
SHA512 31e03b7de44e091614c1680e76988e0f7f5bdc6baf0262ed0583c6311d6d0611b7e30fa73b4522fd99d8ea81e74e5a74a91888135a1352d9ab08bf4a5467d32d
|
2019-06-13 07:31:18 +08:00
|
|
|
HEAD_REF master
|
|
|
|
)
|
|
|
|
|
2021-09-24 08:43:43 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2019-06-13 07:31:18 +08:00
|
|
|
OPTIONS
|
|
|
|
-DARGPARSE_BUILD_TESTS=OFF
|
|
|
|
)
|
|
|
|
|
2021-09-24 08:43:43 +08:00
|
|
|
vcpkg_cmake_install()
|
2019-06-13 07:31:18 +08:00
|
|
|
|
2021-09-24 08:43:43 +08:00
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/${PORT})
|
2019-06-13 07:31:18 +08:00
|
|
|
|
2021-09-24 08:43:43 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug" "${CURRENT_PACKAGES_DIR}/lib")
|
2019-06-13 07:31:18 +08:00
|
|
|
|
|
|
|
# Handle copyright
|
|
|
|
configure_file(${SOURCE_PATH}/LICENSE ${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright COPYONLY)
|