-
Notifications
You must be signed in to change notification settings - Fork 6.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[arg-router] Update to v1.2.0 #29869
Conversation
25b7af6
to
125dcfc
Compare
usage:
When testing usage, the following error occurs:
CMakeFindUsage.cpp#include <iostream> #include "arg_router/arg_router.hpp" CMakeLists.txtcmake_minimum_required (VERSION 3.8) |
e48ffa9
to
ffce298
Compare
You're right, I blindly copied the line from a real project that had |
@MonicaLiu0311 I've updated the patch but I can't remove the |
Using VS2022 to test the new |
@MonicaLiu0311 this library requires a minimum of C++17, MSVC defaults to C++14 so you'll need to add |
ffce298
to
97e1a36
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Extra notes for upstream:
- It would have been better if the exported target would use a namespace (
arg_router::...
). Cmake could recognize it is a target, and clearly and early notify the user if he forgotfind_package()
. - It would be good if some variables could be turned into cache variables (aka input variables), in particular install locations e.g. for cmake config.
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)
I avoided using a namespace simply because there is only one exported target from the package, but you're right, it doesn't fit the pattern of other packages so I'll update it for the next release (cmannett85/arg_router#275).
In a 'normal' installation CMake would look in certain platform-specific locations for the package config files, so I never considered making this settable by the user. But obviously Thanks for your feedback! |
97e1a36
to
9a581dd
Compare
I always find this confusing: While the documentation marks some locations as being "meant for" some platform, the fine print states:
|
Ha, so I could have had |
The usage test passed (header files found):
After correcting the above usage:
|
@MonicaLiu0311 the
|
arg_router v1.2.0
Bug fixes
Improvements