-
Notifications
You must be signed in to change notification settings - Fork 132
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 finding jsoncpp #980
Fix finding jsoncpp #980
Conversation
@Serafadam thanks! How did you hit into that issue? Including core into some project that already uses I'm thinking if we should do a bugfix release or not... |
This occurs when builting RTABMap standalone with DepthAI support. I think this could warrant a bugfix release |
cmake/depthaiDependencies.cmake
Outdated
|
||
find_package(jsoncpp QUIET) | ||
if(NOT TARGET JsonCpp::JsonCpp) | ||
find_package(jsoncpp QUIET) |
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.
@Serafadam I tried using the PR on OSX, but the problem persists. However I found that asking hunter to install the package does the job. So maybe the following could help?
find_package(jsoncpp QUIET) | |
hunter_add_package(jsoncpp) | |
find_package(jsoncpp QUIET) |
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.
@Serafadam would you be able to check if the change from @danzvara works for you?
Using hunter to find it should be fine IMO. CC: @zrezke for v2.26
Updating docs for stereo depth video
Fixes multi-include bug that occurs for jsoncpp.
More information open-source-parsers/jsoncpp#1356