vcpkg/ports/argparse/portfile.cmake

25 lines
728 B
CMake
Raw Normal View History

2019-06-13 07:31:18 +08:00
# header-only library
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO p-ranav/argparse
REF 997da9255618311d1fcb0135ce86022729d1f1cb # v2.9
SHA512 241e6a1ec76133b7ad4ab3984b1b4e08129f3dac80fc26a0010c9450ab83131ec9e2472844eba30265f2a6f1e94c7b7c07175f11a22553bd61a099b1bb148ef7
2019-06-13 07:31:18 +08:00
HEAD_REF master
)
vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
2019-06-13 07:31:18 +08:00
OPTIONS
-DARGPARSE_BUILD_TESTS=OFF
)
vcpkg_cmake_install()
2019-06-13 07:31:18 +08:00
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/${PORT})
2019-06-13 07:31:18 +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)