2018-02-24 14:20:39 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO Taywee/args
|
2023-08-04 21:49:30 +08:00
|
|
|
REF "${VERSION}"
|
|
|
|
SHA512 5b433845ce4a8590e72c045a40ab62602b798dad46eb192210815c11507700026073a6a8a528aaf567786931d587ef58f90b459a747a91856ce1cc4f2835b0e9
|
2018-02-24 14:20:39 +08:00
|
|
|
HEAD_REF master
|
2018-01-06 02:46:58 +08:00
|
|
|
)
|
|
|
|
|
2023-08-04 21:49:30 +08:00
|
|
|
set(VCPKG_BUILD_TYPE release) # header-only port
|
|
|
|
|
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
|
2023-08-04 21:49:30 +08:00
|
|
|
-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
|
|
|
|
2023-08-04 21:49:30 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/lib")
|
2018-01-06 02:46:58 +08:00
|
|
|
|
2023-08-04 21:49:30 +08:00
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
|
|
|
|
file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
|