From 57d8f0198aa9aaa605a9973d105384ae05f41837 Mon Sep 17 00:00:00 2001 From: egutierrez Date: Tue, 28 Apr 2026 18:42:12 +0200 Subject: [PATCH] fix(cmake): guard NOT TARGET sqlite3_vendored para evitar duplicado Cuando registry_dashboard se compila como subdirectorio de cpp/ (en lugar de standalone), el parent ya define sqlite3_vendored. Sin el guard, cmake falla con "another target with the same name already exists". Co-Authored-By: Claude Opus 4.7 (1M context) --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 1b69476..0cd459d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,6 +1,6 @@ # SQLite3: use system library on Linux, vendored amalgamation on Windows cross-compile find_package(SQLite3 QUIET) -if(NOT SQLite3_FOUND) +if(NOT SQLite3_FOUND AND NOT TARGET sqlite3_vendored) # Build from amalgamation set(SQLITE3_AMALG_DIR ${CMAKE_SOURCE_DIR}/vendor/sqlite3) add_library(sqlite3_vendored STATIC ${SQLITE3_AMALG_DIR}/sqlite3.c)