2018-01-05 10:46:58 -08:00
|
|
|
#header-only library
|
|
|
|
include(vcpkg_common_functions)
|
2018-02-23 22:20:39 -08:00
|
|
|
|
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO Taywee/args
|
2019-08-24 13:43:57 -07:00
|
|
|
REF 401663c1d57006566db6d8e5b37a21018fbd0bc3
|
|
|
|
SHA512 2e0506f41ee8527e7fb67c0b926ff892fafe79db90920624c84eb603e374eb74c5640e4d0d0d88554db7a57424095b0da96238b4182ac515ae96dc202df95013
|
2018-02-23 22:20:39 -08:00
|
|
|
HEAD_REF master
|
2018-01-05 10:46:58 -08:00
|
|
|
)
|
|
|
|
|
2018-05-09 09:48:20 +08:00
|
|
|
vcpkg_configure_cmake(
|
|
|
|
SOURCE_PATH ${SOURCE_PATH}
|
|
|
|
PREFER_NINJA
|
2019-05-01 19:20:23 -05:00
|
|
|
OPTIONS
|
|
|
|
-DARGS_BUILD_UNITTESTS=OFF
|
|
|
|
-DARGS_BUILD_EXAMPLE=OFF
|
2018-05-09 09:48:20 +08:00
|
|
|
)
|
|
|
|
|
2019-05-01 19:20:23 -05:00
|
|
|
vcpkg_install_cmake()
|
|
|
|
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/${PORT})
|
|
|
|
|
2018-01-05 10:46:58 -08:00
|
|
|
# Put the licence file where vcpkg expects it
|
2018-05-09 09:48:20 +08:00
|
|
|
file(COPY ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/args)
|
|
|
|
file(RENAME ${CURRENT_PACKAGES_DIR}/share/args/LICENSE ${CURRENT_PACKAGES_DIR}/share/args/copyright)
|
2018-01-05 10:46:58 -08:00
|
|
|
|
2019-05-01 19:20:23 -05:00
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug ${CURRENT_PACKAGES_DIR}/lib)
|
2018-01-05 10:46:58 -08:00
|
|
|
|
|
|
|
vcpkg_copy_pdbs()
|