2019-06-13 07:31:18 +08:00
|
|
|
# header-only library
|
|
|
|
|
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO p-ranav/argparse
|
2021-09-24 01:43:43 +01:00
|
|
|
REF b0cb28ab177cdbd19d439c02cdc217bdfc508ba9 # v2.2
|
|
|
|
SHA512 247f27aa45994ee4629b947e3fe1b1df8fae4e773992c740a7c3d544e45ce83a68ecdcfdedf38c461ccb81cf93d88dfee21dc4f7d027677a3c7d930170446971
|
2019-06-13 07:31:18 +08:00
|
|
|
HEAD_REF master
|
|
|
|
)
|
|
|
|
|
2021-09-24 01:43:43 +01:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2019-06-13 07:31:18 +08:00
|
|
|
OPTIONS
|
|
|
|
-DARGPARSE_BUILD_TESTS=OFF
|
|
|
|
)
|
|
|
|
|
2021-09-24 01:43:43 +01:00
|
|
|
vcpkg_cmake_install()
|
2019-06-13 07:31:18 +08:00
|
|
|
|
2021-09-24 01:43:43 +01:00
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/${PORT})
|
2019-06-13 07:31:18 +08:00
|
|
|
|
2021-09-24 01:43:43 +01: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)
|