diff --git a/Applications/ApplicationsLib/CMakeLists.txt b/Applications/ApplicationsLib/CMakeLists.txt
index e90fb117263f72b0f444cf9089a146e0a76b164f..a915de8466253ebf902e049aa335e829f5cdac60 100644
--- a/Applications/ApplicationsLib/CMakeLists.txt
+++ b/Applications/ApplicationsLib/CMakeLists.txt
@@ -23,7 +23,7 @@ if(OGS_BUILD_CLI OR OGS_BUILD_UTILS OR OGS_BUILD_TESTING)
         PRIVATE ParameterLib ProcessLib
     )
 elseif(OGS_BUILD_GUI)
-    target_link_libraries(ApplicationsLib PRIVATE nlohmann_json)
+    target_link_libraries(ApplicationsLib PRIVATE nlohmann_json::nlohmann_json)
 endif()
 
 if(OGS_USE_LIS)
diff --git a/ProcessLib/CMakeLists.txt b/ProcessLib/CMakeLists.txt
index 74178274eff5cc3ccc9883cd362ce6f19e85e2aa..2e4ae212faa09f268ca0e696b56442ddaaf28a76 100644
--- a/ProcessLib/CMakeLists.txt
+++ b/ProcessLib/CMakeLists.txt
@@ -35,7 +35,7 @@ target_link_libraries(
         NumLib
         $<$<TARGET_EXISTS:ProcessLibBoundaryConditionAndSourceTermPython>:ProcessLibBoundaryConditionAndSourceTermPython>
         $<$<TARGET_EXISTS:petsc>:petsc>
-        nlohmann_json
+        nlohmann_json::nlohmann_json
     PRIVATE ParameterLib GitInfoLib $<$<TARGET_EXISTS:InSituLib>:InSituLib>
 )
 
diff --git a/scripts/cmake/Dependencies.cmake b/scripts/cmake/Dependencies.cmake
index 7a5c8b81b96c93285f9b88cdc7bc4886d0551a11..0775583e85c08a41c1fa29ed3bcd5aa8f89ad25f 100644
--- a/scripts/cmake/Dependencies.cmake
+++ b/scripts/cmake/Dependencies.cmake
@@ -307,9 +307,9 @@ CPMFindPackage(
         SHA256=69cc88207ce91347ea530b227ff0776db82dcb8de6704e1a3d74f4841bc651cf
 )
 if(nlohmann_json_ADDED)
-    add_library(nlohmann_json INTERFACE IMPORTED)
+    add_library(nlohmann_json::nlohmann_json INTERFACE IMPORTED)
     target_include_directories(
-        nlohmann_json INTERFACE ${nlohmann_json_SOURCE_DIR}
+        nlohmann_json::nlohmann_json INTERFACE ${nlohmann_json_SOURCE_DIR}
     )
 endif()