mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-28 01:59:00 +08:00
[cxxopts] Update to 3.0.0 (#21607)
* Update cxxopts to 3.0.0 * Update CI baseline Co-authored-by: chausner <chausner@users.noreply.github.com>
This commit is contained in:
parent
00e252d7c7
commit
8329d995cf
@ -1,13 +0,0 @@
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index 440490b..0ceb003 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -54,6 +54,8 @@ endif()
|
||||
|
||||
add_library(cxxopts INTERFACE)
|
||||
|
||||
+add_definitions(-D_CRT_SECURE_NO_WARNINGS)
|
||||
+
|
||||
# optionally, enable unicode support using the ICU library
|
||||
set(CXXOPTS_USE_UNICODE_HELP FALSE CACHE BOOL "Use ICU Unicode library")
|
||||
if(CXXOPTS_USE_UNICODE_HELP)
|
@ -1,25 +1,25 @@
|
||||
vcpkg_from_github(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO jarro2783/cxxopts
|
||||
REF 302302b30839505703d37fb82f536c53cf9172fa # v2.2.1
|
||||
SHA512 ba4fe586772979929e090310557b1cba66c7350593ae170e3c7bd6577cf147b20dbe3ba834f2ed6e1044a1b38d5166bfd0491ab573df68e678ff2dc792a3c442
|
||||
REF v3.0.0
|
||||
SHA512 239479a3b35ddef6fc380ac9371e1cf7e3aea066f03e1ea538151fa2fff4296838daa976d55e988d8f87f40c0ae027767bcb214754177499413af1081315565c
|
||||
HEAD_REF master
|
||||
PATCHES
|
||||
fix-uwp-error.patch
|
||||
)
|
||||
|
||||
vcpkg_configure_cmake(
|
||||
SOURCE_PATH ${SOURCE_PATH}
|
||||
PREFER_NINJA
|
||||
vcpkg_cmake_configure(
|
||||
SOURCE_PATH "${SOURCE_PATH}"
|
||||
OPTIONS
|
||||
-DCXXOPTS_BUILD_EXAMPLES=OFF
|
||||
-DCXXOPTS_BUILD_TESTS=OFF
|
||||
-DCXXOPTS_BUILD_TESTS=OFF
|
||||
-DCXXOPTS_ENABLE_WARNINGS=OFF
|
||||
)
|
||||
|
||||
vcpkg_install_cmake()
|
||||
vcpkg_cmake_install()
|
||||
|
||||
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/cxxopts)
|
||||
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/cxxopts)
|
||||
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug ${CURRENT_PACKAGES_DIR}/lib)
|
||||
vcpkg_fixup_pkgconfig()
|
||||
|
||||
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/cxxopts RENAME copyright)
|
||||
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug" "${CURRENT_PACKAGES_DIR}/lib")
|
||||
|
||||
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/cxxopts" RENAME copyright)
|
||||
|
@ -1,7 +1,16 @@
|
||||
{
|
||||
"name": "cxxopts",
|
||||
"version-string": "2.2.1",
|
||||
"port-version": 1,
|
||||
"version-semver": "3.0.0",
|
||||
"description": "This is a lightweight C++ option parser library, supporting the standard GNU style syntax for options",
|
||||
"homepage": "https://github.com/jarro2783/cxxopts"
|
||||
"homepage": "https://github.com/jarro2783/cxxopts",
|
||||
"dependencies": [
|
||||
{
|
||||
"name": "vcpkg-cmake",
|
||||
"host": true
|
||||
},
|
||||
{
|
||||
"name": "vcpkg-cmake-config",
|
||||
"host": true
|
||||
}
|
||||
]
|
||||
}
|
||||
|
@ -1721,8 +1721,8 @@
|
||||
"port-version": 0
|
||||
},
|
||||
"cxxopts": {
|
||||
"baseline": "2.2.1",
|
||||
"port-version": 1
|
||||
"baseline": "3.0.0",
|
||||
"port-version": 0
|
||||
},
|
||||
"czmq": {
|
||||
"baseline": "4.2.1",
|
||||
|
@ -1,5 +1,10 @@
|
||||
{
|
||||
"versions": [
|
||||
{
|
||||
"git-tree": "803dd21f8c06b5460353b53501f273b6c30aa9df",
|
||||
"version-semver": "3.0.0",
|
||||
"port-version": 0
|
||||
},
|
||||
{
|
||||
"git-tree": "68001132d5d7e495c5890f3cadfed62aba7185dd",
|
||||
"version-string": "2.2.1",
|
||||
|
Loading…
Reference in New Issue
Block a user