From c5ae3e5b1d868965d40c975c5a38a22b5d014673 Mon Sep 17 00:00:00 2001 From: Andy Getz Date: Tue, 21 Feb 2023 00:01:46 -0500 Subject: [PATCH] misc: apply sqlite3 defines/includes/libs to qagame_libraries too. These are used in e.g. g_xp_saver.c but not found in an unbundled-sqlite3 build without this patch. fixes #2244 --- cmake/ETLSetupFeatures.cmake | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cmake/ETLSetupFeatures.cmake b/cmake/ETLSetupFeatures.cmake index b6fc731a2..fef357db1 100644 --- a/cmake/ETLSetupFeatures.cmake +++ b/cmake/ETLSetupFeatures.cmake @@ -280,10 +280,14 @@ if(BUILD_CLIENT OR BUILD_SERVER) find_package(SQLite3 REQUIRED) target_link_libraries(engine_libraries INTERFACE ${SQLITE3_LIBRARY}) target_include_directories(engine_libraries INTERFACE ${SQLITE3_INCLUDE_DIR}) + target_link_libraries(qagame_libraries INTERFACE ${SQLITE3_LIBRARY}) + target_include_directories(qagame_libraries INTERFACE ${SQLITE3_INCLUDE_DIR}) else() # BUNDLED_SQLITE3 target_link_libraries(engine_libraries INTERFACE bundled_sqlite3) + target_link_libraries(qagame_libraries INTERFACE bundled_sqlite3) endif() target_compile_definitions(engine_libraries INTERFACE FEATURE_DBMS) + target_compile_definitions(qagame_libraries INTERFACE FEATURE_DBMS) FILE(GLOB DBMS_SRC "src/db/db_sql.h"