Skip to content

Commit

Permalink
[arg-router] Update to v1.2.2 (#30024)
Browse files Browse the repository at this point in the history
* [arg-router] Update to v1.2.2

Bug fixes
* Issue 284, specify Boost as a dependency in the config file
* Issue 274, CMake package should detect Boost headers itself

Improvements
* CMake package exported target should be namespaced (Issue 275)
* Improve CMake package config files installation (Issue 276)

* Reverted unrelated baseline change
  • Loading branch information
cmannett85 committed Mar 6, 2023
1 parent 0d13877 commit f3bc121
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 16 deletions.
14 changes: 1 addition & 13 deletions ports/arg-router/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ vcpkg_from_github(
REPO cmannett85/arg_router
REF v${VERSION}
HEAD_REF main
SHA512 69448b9343247679a7f288c4b69819df68ba8893d3537b2bdfedf77e2c4f8d39696c68f7716eda108810a7b951f2fec57d329d4113623edf2d28c55e3e68329f
SHA512 7f19f9b4df8c2b8968cfc05a92eb3dab44fdc261835a75ccf6e0ec64c68059f05fd7125466e81fa8b04638ab79792b2151216214bb121c06c77c4441a6917315
)

set(VCPKG_BUILD_TYPE release) # header-only port
Expand All @@ -21,22 +21,10 @@ file(COPY "${CMAKE_CURRENT_LIST_DIR}/usage"
DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}"
)

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}"
)

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"
)
Expand Down
2 changes: 1 addition & 1 deletion ports/arg-router/usage
Original file line number Diff line number Diff line change
@@ -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)
target_link_libraries(my_exe PUBLIC arg_router)
target_link_libraries(my_exe PUBLIC arg_router::arg_router)

For more information, see the docs here:

Expand Down
2 changes: 1 addition & 1 deletion ports/arg-router/vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "arg-router",
"version": "1.2.0",
"version": "1.2.2",
"description": "C++ command line argument parsing and routing.",
"homepage": "https://github.com/cmannett85/arg_router",
"documentation": "https://cmannett85.github.io/arg_router/",
Expand Down
5 changes: 5 additions & 0 deletions versions/a-/arg-router.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "9e1db4d06fe1aa7b5f0677d4e843331e7c7b2bca",
"version": "1.2.2",
"port-version": 0
},
{
"git-tree": "2ad077ad64e854b417c0c85f5900528795bc2028",
"version": "1.2.0",
Expand Down
2 changes: 1 addition & 1 deletion versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@
"port-version": 2
},
"arg-router": {
"baseline": "1.2.0",
"baseline": "1.2.2",
"port-version": 0
},
"argagg": {
Expand Down

0 comments on commit f3bc121

Please sign in to comment.