vcpkg/ports/cxxopts/portfile.cmake

26 lines
733 B
CMake
Raw Normal View History

2017-07-22 03:26:24 +08:00
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO jarro2783/cxxopts
REF v3.0.0
SHA512 239479a3b35ddef6fc380ac9371e1cf7e3aea066f03e1ea538151fa2fff4296838daa976d55e988d8f87f40c0ae027767bcb214754177499413af1081315565c
2017-07-22 03:26:24 +08:00
HEAD_REF master
)
2018-08-02 01:39:01 +08:00
vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
2018-08-02 01:39:01 +08:00
OPTIONS
-DCXXOPTS_BUILD_EXAMPLES=OFF
-DCXXOPTS_BUILD_TESTS=OFF
-DCXXOPTS_ENABLE_WARNINGS=OFF
2018-08-02 01:39:01 +08:00
)
vcpkg_cmake_install()
2018-08-02 01:39:01 +08:00
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/cxxopts)
2018-08-02 01:39:01 +08:00
vcpkg_fixup_pkgconfig()
2018-08-02 01:39:01 +08:00
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug" "${CURRENT_PACKAGES_DIR}/lib")
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/cxxopts" RENAME copyright)