Skip to content
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

Merged
merged 6 commits into from
Apr 16, 2024
Merged

Fix finding jsoncpp #980

merged 6 commits into from
Apr 16, 2024

Conversation

Serafadam
Copy link
Contributor

Fixes multi-include bug that occurs for jsoncpp.
More information open-source-parsers/jsoncpp#1356

@moratom
Copy link
Collaborator

moratom commented Mar 13, 2024

@Serafadam thanks! How did you hit into that issue? Including core into some project that already uses jsoncpp?

I'm thinking if we should do a bugfix release or not...

@Serafadam
Copy link
Contributor Author

Serafadam commented Mar 14, 2024

This occurs when builting RTABMap standalone with DepthAI support. I think this could warrant a bugfix release


find_package(jsoncpp QUIET)
if(NOT TARGET JsonCpp::JsonCpp)
find_package(jsoncpp QUIET)
Copy link

@danzvara danzvara Mar 25, 2024

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?

Suggested change
find_package(jsoncpp QUIET)
hunter_add_package(jsoncpp)
find_package(jsoncpp QUIET)

Copy link
Collaborator

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

moratom pushed a commit that referenced this pull request Apr 3, 2024
Updating docs for stereo depth video
@moratom moratom merged commit 78beba7 into develop Apr 16, 2024
30 of 31 checks passed
@moratom moratom deleted the jsoncpp_find_package_bug branch April 16, 2024 08:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants