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-03-23 06:35:03 +08:00
|
|
|
REF ae22269df734a2b0957a9ab4e37be41f61866dbe
|
|
|
|
SHA512 fe44bc6b7b81013ce649e3fa33c3d9503747a3c9044b70cf9eaf8ff780f2feabdabc261a33d29042daec19a598e3d60e318d3d415cbffb5fdcd2aabdd2ef39db
|
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(
|
2018-05-09 09:48:20 +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})
|
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-03-23 06:35:03 +08:00
|
|
|
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|
2018-01-06 02:46:58 +08:00
|
|
|
|
2019-05-02 08:20:23 +08:00
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug ${CURRENT_PACKAGES_DIR}/lib)
|
2018-01-06 02:46:58 +08:00
|
|
|
|
|
|
|
vcpkg_copy_pdbs()
|