From 28924905122211669a383877b5a52ff6c791370d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thorbj=C3=B8rn=20Lindeijer?= Date: Tue, 10 Mar 2026 17:47:17 +0100 Subject: [PATCH] Remove redundant nlohmann_json alias Fixes CMake error: CMake Error at CMakeLists.txt:31 (add_library): add_library cannot create ALIAS target "nlohmann_json::nlohmann_json" because another target with the same name already exists. --- CMakeLists.txt | 2 -- 1 file changed, 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index c17bf52..1294ab1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -27,8 +27,6 @@ if(NOT nlohmann_json_FOUND) ) FetchContent_MakeAvailable(nlohmann_json) - - add_library(nlohmann_json::nlohmann_json ALIAS nlohmann_json) endif() add_subdirectory(lib)