2017-07-22 03:26:24 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO jarro2783/cxxopts
|
2023-03-09 06:07:08 +08:00
|
|
|
REF "v${VERSION}"
|
2024-02-27 16:13:45 +08:00
|
|
|
SHA512 7841fb3e6c3c2a057917c962e29fc0090e6ed06f5515aaa5e2a868fef59071a9a99b74d81c32cf613ecf10a68a4d96d6ad07805f48c7c3951ded096a2317dc3d
|
2017-07-22 03:26:24 +08:00
|
|
|
HEAD_REF master
|
|
|
|
)
|
2018-08-02 01:39:01 +08:00
|
|
|
|
2021-11-24 04:16:04 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2018-08-02 01:39:01 +08:00
|
|
|
OPTIONS
|
|
|
|
-DCXXOPTS_BUILD_EXAMPLES=OFF
|
2021-11-24 04:16:04 +08:00
|
|
|
-DCXXOPTS_BUILD_TESTS=OFF
|
|
|
|
-DCXXOPTS_ENABLE_WARNINGS=OFF
|
2018-08-02 01:39:01 +08:00
|
|
|
)
|
|
|
|
|
2021-11-24 04:16:04 +08:00
|
|
|
vcpkg_cmake_install()
|
2018-08-02 01:39:01 +08:00
|
|
|
|
2021-11-24 04:16:04 +08:00
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/cxxopts)
|
2018-08-02 01:39:01 +08:00
|
|
|
|
2021-11-24 04:16:04 +08:00
|
|
|
vcpkg_fixup_pkgconfig()
|
2018-08-02 01:39:01 +08:00
|
|
|
|
2021-11-24 04:16:04 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug" "${CURRENT_PACKAGES_DIR}/lib")
|
|
|
|
|
2023-03-09 06:07:08 +08:00
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
|