vcpkg/ports/cxxopts/portfile.cmake
6ziv 39c4d058e7
[cxxopts]Update cxxopts version to 3.1.0 (#29655)
* update cxxopts version to 3.1.0

* Update version files for cxxopts
2023-02-15 09:44:23 -08:00

26 lines
733 B
CMake

vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO jarro2783/cxxopts
REF v3.1.0
SHA512 bfb593f6393160ae3eeff1fe7bc77394606c3af6ae3b785f9740d178514a8fd286556440aa8a2932633f65b6336695fa286d503f3ac544d0f73affd49051e85d
HEAD_REF master
)
vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
OPTIONS
-DCXXOPTS_BUILD_EXAMPLES=OFF
-DCXXOPTS_BUILD_TESTS=OFF
-DCXXOPTS_ENABLE_WARNINGS=OFF
)
vcpkg_cmake_install()
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/cxxopts)
vcpkg_fixup_pkgconfig()
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug" "${CURRENT_PACKAGES_DIR}/lib")
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/cxxopts" RENAME copyright)