diff --git a/CMakeLists.txt b/CMakeLists.txt index 4cbb578c02..c74bedf3f5 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -878,8 +878,8 @@ if(openPMD_BUILD_TESTING) endif() if(${testname} STREQUAL JSON) - target_link_libraries(${testname}Tests PRIVATE nlohmann_json::nlohmann_json) target_include_directories(${testname}Tests SYSTEM PRIVATE + $ $) endif() endforeach()