mirror of
https://github.com/etlegacy/etlegacy-libs.git
synced 2024-11-10 23:01:47 +00:00
sqlite: disable fast-math for sqlite3 lib
(omit floating-point number support)
This commit is contained in:
parent
62cd6af6ed
commit
cba988204e
1 changed files with 4 additions and 1 deletions
|
@ -8,7 +8,7 @@ option(WITH_SQLITE_DEBUG "Build SQLite3 debug features" OFF)
|
||||||
option(WITH_SQLITE_MEMDEBUG "Build SQLite3 memory debug features" OFF)
|
option(WITH_SQLITE_MEMDEBUG "Build SQLite3 memory debug features" OFF)
|
||||||
option(WITH_SQLITE_RTREE "Build R*Tree index extension" OFF)
|
option(WITH_SQLITE_RTREE "Build R*Tree index extension" OFF)
|
||||||
option(WITH_SQLITE_THREADSAFE "Build SQLite3 threadsafe" OFF)
|
option(WITH_SQLITE_THREADSAFE "Build SQLite3 threadsafe" OFF)
|
||||||
option(SQLITE_OMIT_FLOATING_POINT "Build SQLite3 omit floating-point number support" OFF)
|
option(SQLITE_OMIT_FLOATING_POINT "Build SQLite3 omit floating-point number support" ON)
|
||||||
|
|
||||||
#SQLITE_OMIT_LOAD_EXTENSION
|
#SQLITE_OMIT_LOAD_EXTENSION
|
||||||
|
|
||||||
|
@ -63,6 +63,9 @@ include_directories(${SQLITE3_SOURCE_DIR}/src)
|
||||||
set(SRC_LIB_FILE ${SQLITE3_SOURCE_DIR}/src/sqlite${SQLITE_VER_MAJOR}.c)
|
set(SRC_LIB_FILE ${SQLITE3_SOURCE_DIR}/src/sqlite${SQLITE_VER_MAJOR}.c)
|
||||||
file(GLOB HDR_FILES ${SQLITE3_SOURCE_DIR}/src/*.h)
|
file(GLOB HDR_FILES ${SQLITE3_SOURCE_DIR}/src/*.h)
|
||||||
|
|
||||||
|
# exclude flag fast-math for sqlite3 lib!
|
||||||
|
set_source_files_properties(HDR_FILES PROPERTIES COMPILE_FLAGS --fno-fast-math)
|
||||||
|
|
||||||
# adding compilation flags depending on options
|
# adding compilation flags depending on options
|
||||||
if(WITH_SQLITE_DEBUG)
|
if(WITH_SQLITE_DEBUG)
|
||||||
add_definitions(-DSQLITE_DEBUG)
|
add_definitions(-DSQLITE_DEBUG)
|
||||||
|
|
Loading…
Reference in a new issue