[arg-router] Update to v1.2.0 (#29869)

* [arg-router] Update to v1.2.0

Bug fixes
* Issue 254, passing no args to short_form_expander_t::pre_parse_phase(..) causes segfault
* Issue 255, policy_unique_from_owner_parent_to_mode_or_root not working

Improvements
* Corrected CMake package so you don't need to manually set the include directory anymore (Issue 257)
* Node can be instantiated with bare compile-time strings and they are automatically mapped to the appropriate policy (Issue 256)
* Improved help output formatting documentation (Issue 258)

* Removed invalid dependency from usage file

* Used CONFIG_PATH in vcpkg_cmake_config_fixup()

* Replaced lost newline
This commit is contained in:
Cam Mannett 2023-03-02 20:10:06 +00:00 committed by GitHub
parent 1840f03fdf
commit e4040c68c9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 22 additions and 11 deletions

View File

@ -3,7 +3,7 @@ vcpkg_from_github(
REPO cmannett85/arg_router
REF v${VERSION}
HEAD_REF main
SHA512 2951a54b4fb13abd10d4de3711d4d92f180e582c21e9a0d3599cb327e799727e826ea87aecd0fd7a6203585eac5a934afe25f98488ef6b36c12be97450ab8020
SHA512 69448b9343247679a7f288c4b69819df68ba8893d3537b2bdfedf77e2c4f8d39696c68f7716eda108810a7b951f2fec57d329d4113623edf2d28c55e3e68329f
)
set(VCPKG_BUILD_TYPE release) # header-only port
@ -21,17 +21,23 @@ file(COPY "${CMAKE_CURRENT_LIST_DIR}/usage"
DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}"
)
file(COPY "${CURRENT_PACKAGES_DIR}/include/arg_router/arg_router-config.cmake"
"${CURRENT_PACKAGES_DIR}/include/arg_router/arg_router-config-version.cmake"
DESTINATION "${CURRENT_PACKAGES_DIR}/share/arg_router"
)
set(CMAKE_FILE_DIR "lib/cmake/arg_router")
if (WIN32)
set(CMAKE_FILE_DIR "cmake")
elseif (APPLE)
set(CMAKE_FILE_DIR "arg_router.framework/Resources/CMake")
endif()
vcpkg_cmake_config_fixup(
PACKAGE_NAME arg_router
CONFIG_PATH "${CMAKE_FILE_DIR}"
)
file(REMOVE "${CURRENT_PACKAGES_DIR}/include/arg_router/arg_router-config.cmake"
"${CURRENT_PACKAGES_DIR}/include/arg_router/arg_router-config-version.cmake"
"${CURRENT_PACKAGES_DIR}/include/arg_router/LICENSE"
string(FIND "${CMAKE_FILE_DIR}" "/" CMAKE_FILE_DIR_SLASH_IDX)
string(SUBSTRING "${CMAKE_FILE_DIR}" 0 ${CMAKE_FILE_DIR_SLASH_IDX} CMAKE_FILE_DIR_ROOT)
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/${CMAKE_FILE_DIR_ROOT}")
file(REMOVE "${CURRENT_PACKAGES_DIR}/include/arg_router/LICENSE"
"${CURRENT_PACKAGES_DIR}/include/arg_router/README.md"
)

View File

@ -1,7 +1,7 @@
The package arg-router is a header-only library and so is typically used like this:
find_package(arg_router REQUIRED)
include_directories(SYSTEM "${arg_router_INCLUDE_DIRS}")
target_link_libraries(my_exe PUBLIC arg_router)
For more information, see the docs here:

View File

@ -1,6 +1,6 @@
{
"name": "arg-router",
"version": "1.1.1",
"version": "1.2.0",
"description": "C++ command line argument parsing and routing.",
"homepage": "https://github.com/cmannett85/arg_router",
"documentation": "https://cmannett85.github.io/arg_router/",

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "2ad077ad64e854b417c0c85f5900528795bc2028",
"version": "1.2.0",
"port-version": 0
},
{
"git-tree": "3a12ba85bd70de2d9fdd55ecff2ee394d0ed1b79",
"version": "1.1.1",

View File

@ -161,7 +161,7 @@
"port-version": 2
},
"arg-router": {
"baseline": "1.1.1",
"baseline": "1.2.0",
"port-version": 0
},
"argagg": {