-
-
Notifications
You must be signed in to change notification settings - Fork 396
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
fix jwt-cpp on_test #5366
fix jwt-cpp on_test #5366
Conversation
]]}, {configs = {languages = "c++11"}})) | ||
if package:config("picojson") then | ||
assert(package:check_cxxsnippets({test = [[ | ||
#include <jwt-cpp/jwt.h> |
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.
Could you please provide more information about this change? When the picojson feature is disabled with this patch, it will be completely untested.
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.
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.
I understand. In this case, the current port of the package can be enhanced by incorporating additional JSON trait features, such as Boost.JSON or nlohmann_json. These dependencies should be added when the feature is enabled. Otherwise, simply disabling the on_test
won't be very effective.
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.
Yes, I use nlohmann-json by add_requires in my project code, I just want to be able to install jwt after disabling picojson.
If the programmer actively turns off this picojson config, it means that he is consciously using other json libraries.
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.
Need refactor the package
No issue? I merged |
check package:config("picojson") before on_test