Closed elnoir closed 3 months ago
What CMake version are you using? It should be handled by: https://github.com/pboettch/json-schema-validator/blob/08d8a52a8a1353b6bc953b63f7c6763e74e6047b/CMakeLists.txt#L88-L107
Normally if it doesn't find it automatically, it will still give you a version via FetchContent
. Can you look into the build directory for _deps
. If it's not there, or you see in the log that find_package
succeeded, than there might be an issue with how nlohmann::json
was packaged and installed?
PS: nlohmann_json_ROOT
is preferred over nlohmann_json_DIR
Okay, it seems it was an issue with the installation of the nlohmann json
library. It was built from the develop branch instead of the version tag.
Thanks, that's also useful to know that it will have to be addressed for the future version
My build environment is the folowing:
Reprosteps:
Result:
The first issue seems in incorrect casting: I beleive it should be
The second error seems to be regarding the move of the json literal:see here The following code did the trick.
After this modification the library compiles, but most of test cases are still broken due to the missing literals.