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}"
|
|
|
|
SHA512 a7ed879eb3f71868cd84e513c0db63c4fecff1c9f0b34d6cfbe85d2439e83b80e97f713b497259c9775c9c7c1f639a08b73080045c51756de15e3d8c18b97116
|
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)
|