2018-01-06 02:46:58 +08:00
|
|
|
#header-only library
|
2018-02-24 14:20:39 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO Taywee/args
|
2021-11-06 05:28:17 +08:00
|
|
|
REF 6.2.7
|
|
|
|
SHA512 a6491b2680979feb2f09e7ffb4f3c939b75057b6b4b90136b6cb72eaf5a462d3079dfb5836744e53bf4946bd575d4449f87129d6e50045732d7fba11c2be57dd
|
2018-02-24 14:20:39 +08:00
|
|
|
HEAD_REF master
|
2018-01-06 02:46:58 +08:00
|
|
|
)
|
|
|
|
|
2021-03-23 06:35:03 +08:00
|
|
|
vcpkg_cmake_configure(
|
2021-11-06 05:28:17 +08:00
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2019-05-02 08:20:23 +08:00
|
|
|
OPTIONS
|
|
|
|
-DARGS_BUILD_UNITTESTS=OFF
|
|
|
|
-DARGS_BUILD_EXAMPLE=OFF
|
2018-05-09 09:48:20 +08:00
|
|
|
)
|
|
|
|
|
2021-03-23 06:35:03 +08:00
|
|
|
vcpkg_cmake_install()
|
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/${PORT})
|
2021-11-06 05:28:17 +08:00
|
|
|
vcpkg_fixup_pkgconfig()
|
2019-05-02 08:20:23 +08:00
|
|
|
|
2018-01-06 02:46:58 +08:00
|
|
|
# Put the licence file where vcpkg expects it
|
2021-11-06 05:28:17 +08:00
|
|
|
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
2018-01-06 02:46:58 +08:00
|
|
|
|
2021-11-06 05:28:17 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
2018-01-06 02:46:58 +08:00
|
|
|
|
|
|
|
vcpkg_copy_pdbs()
|