Integration with nlohmann_json using Cmake #247
Unanswered
AntonioRasulo
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Do you need to install the libraries (and the sub-directories)? If not, just defined set(JSON_VALIDATOR_INSTALL OFF) before including json-schema-validator. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I'm having issues by integrating the schema-validator library with the json nlohmann library.
Here's the snippet of interest of the CMakeLists.txt that I wrote:
where the first
add_subdirectory
is for the nlohmann json library, the second one is for the schema validator library and the third one is for my project. It appear the following error:which requires target "nlohmann_json" that is not in any export set.
The install function of interest Inside the CMakeLists.txt of the schema validator library seems to be this one:
What I have to do to solve this problem?
Beta Was this translation helpful? Give feedback.
All reactions