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) <noreply@anthropic.com>
This commit is contained in:
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
# SQLite3: use system library on Linux, vendored amalgamation on Windows cross-compile
|
# SQLite3: use system library on Linux, vendored amalgamation on Windows cross-compile
|
||||||
find_package(SQLite3 QUIET)
|
find_package(SQLite3 QUIET)
|
||||||
if(NOT SQLite3_FOUND)
|
if(NOT SQLite3_FOUND AND NOT TARGET sqlite3_vendored)
|
||||||
# Build from amalgamation
|
# Build from amalgamation
|
||||||
set(SQLITE3_AMALG_DIR ${CMAKE_SOURCE_DIR}/vendor/sqlite3)
|
set(SQLITE3_AMALG_DIR ${CMAKE_SOURCE_DIR}/vendor/sqlite3)
|
||||||
add_library(sqlite3_vendored STATIC ${SQLITE3_AMALG_DIR}/sqlite3.c)
|
add_library(sqlite3_vendored STATIC ${SQLITE3_AMALG_DIR}/sqlite3.c)
|
||||||
|
|||||||
Reference in New Issue
Block a user