We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
In #65 we added the json.hpp in the repo but it would be better to use cmake FetchContent
The text was updated successfully, but these errors were encountered:
A typical boilerplate for this is:
option(YARP_TELEMETRY_USES_SYSTEM_nlohmann_json OFF) if(YARP_TELEMETRY_USES_SYSTEM_nlohmann_json) find_package(nlohmann_json REQUIRED) else() include(FetchContent) FetchContent_Declare(json GIT_REPOSITORY https://github.com/nlohmann/json.git GIT_TAG v3.7.3) FetchContent_GetProperties(json) if(NOT json_POPULATED) FetchContent_Populate(json) add_subdirectory(${json_SOURCE_DIR} ${json_BINARY_DIR} EXCLUDE_FROM_ALL) endif() endif()
and then in the CMake code you just use nlohmann_json::nlohmann_json , see https://github.com/nlohmann/json#embedded-fetchcontent .
nlohmann_json::nlohmann_json
Sorry, something went wrong.
I completely missed this https://github.com/nlohmann/json#embedded-fetchcontent !
YARP_telemety: add nlohmann_json parser dependency
6f9d83f
It fixes #66
486b96d
Nicogene
Successfully merging a pull request may close this issue.
In #65 we added the json.hpp in the repo but it would be better to use cmake FetchContent
The text was updated successfully, but these errors were encountered: