From 0b588bf7156296735cda50bde821d83fd77287c5 Mon Sep 17 00:00:00 2001 From: tola Date: Mon, 27 Oct 2025 18:20:03 +0700 Subject: [PATCH] updated CMakeLists.txt (fix build on macos) --- CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index b72db86..837955d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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)