OCT 1. 更新编译开关配置

This commit is contained in:
huangxin 2022-11-29 18:17:25 +08:00
parent e8255896c7
commit f08165486f
1 changed files with 5 additions and 3 deletions

View File

@ -22,7 +22,6 @@ AUX_SOURCE_DIRECTORY(mq C_SRC)
AUX_SOURCE_DIRECTORY(cmdline C_SRC)
AUX_SOURCE_DIRECTORY(crypto C_SRC)
AUX_SOURCE_DIRECTORY(hardware C_SRC)
AUX_SOURCE_DIRECTORY(database/sqlite3 C_SRC)
if (USED_REDIS)
ADD_DEFINITIONS(-DUSED_REDIS)
@ -30,6 +29,7 @@ endif ()
if (USED_SQLITE)
ADD_DEFINITIONS(-DUSED_SQLITE)
AUX_SOURCE_DIRECTORY(database/sqlite3 C_SRC)
endif ()
if (USED_MYSQL)
@ -39,6 +39,7 @@ endif ()
SET(CMAKE_C_STANDARD 99)
SET_SOURCE_FILES_PROPERTIES(misc/zvector.c PROPERTIES COMPILE_FLAGS "-Wall -Wextra -flto")
if (USED_SQLITE)
SET_SOURCE_FILES_PROPERTIES(database/sqlite3/sqlite3.c PROPERTIES
COMPILE_FLAGS "-DSQLITE_HAS_CODEC \
-DSQLCIPHER_CRYPTO_OPENSSL -DSQLITE_OS_UNIX=1 \
@ -46,6 +47,7 @@ SET_SOURCE_FILES_PROPERTIES(database/sqlite3/sqlite3.c PROPERTIES
-DSQLITE_ENABLE_MATH_FUNCTIONS -DSQLITE_ENABLE_UPDATE_DELETE_LIMIT \
-DSQLITE_ENABLE_MATH_FUNCTIONS -DSQLITE_ENABLE_UPDATE_DELETE_LIMIT \
-DSQLITE_HAVE_ZLIB=1 -DSQLITE_TEMP_STORE=2")
endif ()
ADD_DEFINITIONS(-DBUILD_VERSION="${GIT_VERSION}" ${COMMON_DEFINE})