From e9cdfb198d2717e6fd4553a04fd949063c42ed25 Mon Sep 17 00:00:00 2001 From: Pascal Thomet Date: Tue, 17 Dec 2024 08:08:12 +0100 Subject: [PATCH] CMake: fix immvision link to nlohmann_json (see https://github.com/pthom/imgui_bundle_template/issues/2) --- external/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/external/CMakeLists.txt b/external/CMakeLists.txt index ce5d6e50..f76b5da4 100644 --- a/external/CMakeLists.txt +++ b/external/CMakeLists.txt @@ -55,7 +55,7 @@ if(HELLOIMGUI_HAS_OPENGL AND NOT IMGUI_BUNDLE_DISABLE_IMMVISION) find_package(nlohmann_json CONFIG QUIET) if(nlohmann_json_FOUND) - target_link_libraries(${HELLOIMGUI_TARGET} PRIVATE nlohmann_json::nlohmann_json) + target_link_libraries(immvision PRIVATE nlohmann_json::nlohmann_json) else() # use nlohmann_json provided by hello_imgui if not found in package target_link_libraries(immvision PRIVATE nlohmann_json)