Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Test for JSON before using it
[simgrid.git] / tools / cmake / MakeLib.cmake
index 4afca47..11cf6b9 100644 (file)
@@ -95,6 +95,10 @@ if(HAVE_GRAPHVIZ)
   endif()
 endif()
 
+if(SIMGRID_HAVE_JSON)
+  target_link_libraries(simgrid  nlohmann_json::nlohmann_json)
+endif()
+
 if(NOT ${DL_LIBRARY} STREQUAL "")
   SET(SIMGRID_DEP "${SIMGRID_DEP} ${DL_LIBRARY}")
 endif()