From cba988204e18d639384f8496d207ac0b764ca5b2 Mon Sep 17 00:00:00 2001 From: IR4T4 Date: Wed, 27 Jan 2016 22:17:22 +0100 Subject: [PATCH] sqlite: disable fast-math for sqlite3 lib (omit floating-point number support) --- sqlite3/CMakeLists.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/sqlite3/CMakeLists.txt b/sqlite3/CMakeLists.txt index 152da2c5..32b09623 100644 --- a/sqlite3/CMakeLists.txt +++ b/sqlite3/CMakeLists.txt @@ -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_RTREE "Build R*Tree index extension" 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 @@ -63,6 +63,9 @@ include_directories(${SQLITE3_SOURCE_DIR}/src) set(SRC_LIB_FILE ${SQLITE3_SOURCE_DIR}/src/sqlite${SQLITE_VER_MAJOR}.c) 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 if(WITH_SQLITE_DEBUG) add_definitions(-DSQLITE_DEBUG)