ctest (58+60,/67 cmake_import_configure) fails when build with -D JSON_Install:BOOL=OFF because of missing nlohmann_jsonTargets.cmake #2946
Labels
confirmed
kind: bug
solution: proposed fix
a fix for the issue has been proposed and waits for confirmation
What is the issue you have?
This is because in CMakeLists.txt export ... NLOHMANN_JSON_CMAKE_PROJECT_TARGETS_FILE is called only in case of JSON_Install is true.
Please describe the steps to reproduce the issue.
What is the expected behavior?
Tests should not fail when using flags -D JSON_Install:BOOL=OFF -D JSON_ImplicitConversions:BOOL=OFF -D JSON_BuildTests:BOOL=ON
And what is the actual behavior instead?
Some tests fail.
Which compiler and operating system are you using?
Which version of the library did you use?
develop
branchIf you experience a compilation error: can you compile and run the unit tests?
The text was updated successfully, but these errors were encountered: