Skip to content

Commit

Permalink
Add nlohmann_json inculde directories
Browse files Browse the repository at this point in the history
  • Loading branch information
DerNils-git committed Jul 19, 2023
1 parent 6136a97 commit 41a4658
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
$<TARGET_PROPERTY:openPMD::thirdparty::nlohmann_json,INTERFACE_INCLUDE_DIRECTORIES>
$<TARGET_PROPERTY:openPMD::thirdparty::toml11,INTERFACE_INCLUDE_DIRECTORIES>)
endif()
endforeach()
Expand Down

0 comments on commit 41a4658

Please sign in to comment.