updated CMakeLists.txt (fix build on macos)
Prepare Build and Testing executable binary / Prepare-Build-Testing-With-Make (push) Successful in 18s
Prepare Build and Testing executable binary / Prepare-Build-Testing-With-CMake (push) Successful in 16s
Prepare Build and Testing executable binary / Prepare-Build-Testing-With-Meson (push) Successful in 13s
Prepare Build and Testing executable binary / Prepare-Build-Testing-With-Make-Without-sqlite3 (push) Successful in 8s
Prepare Build and Testing executable binary / Prepare-Build-Testing-With-CMake-Without-sqlite3 (push) Successful in 14s
Prepare Build and Testing executable binary / Prepare-Build-Testing-With-Meson-Without-sqlite3 (push) Successful in 12s

This commit is contained in:
tola
2025-10-27 18:20:03 +07:00
parent faeb9ff052
commit 0b588bf715
+2 -1
View File
@@ -11,7 +11,7 @@ endif()
include_directories(./src/lib/ ${SQLite3_INCLUDE_DIRS})
FILE(GLOB_RECURSE SOURCES src/*.c)
FILE(GLOB SOURCES src/*.c src/lib/*.c src/file_db/*.c)
option(USE_SQLITE3 "Enable SQLite3 support" OFF)
option(USE_WERROR "Enable SQLite3 support" OFF)
@@ -19,6 +19,7 @@ option(USE_WERROR "Enable SQLite3 support" OFF)
if(USE_SQLITE3)
find_package(SQLite3 REQUIRED)
add_definitions(-DUSE_SQLITE3)
FILE(GLOB SOURCES src/*.c src/lib/*.c src/sqlite_db/*.c src/file_db/*.c)
endif()
if(USE_WERROR)