mirror of
https://github.com/etlegacy/etlegacy-libs.git
synced 2024-11-10 14:51:58 +00:00
libs: set SQLITE_HAVE_ISNAN for fast-math support with GCC
This commit is contained in:
parent
3bf03e6604
commit
be9d5fe80f
1 changed files with 2 additions and 1 deletions
|
@ -70,8 +70,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)
|
||||
|
||||
# set explicit fast-math flag for sqlite3
|
||||
# set explicit fast-math flag for sqlite3 (required for floating point support)
|
||||
set_source_files_properties(HDR_FILES PROPERTIES COMPILE_FLAGS -ffast-math)
|
||||
add_definitions(-DSQLITE_HAVE_ISNAN=1) # required for -ffast-math with GCC
|
||||
|
||||
# adding compilation flags depending on options
|
||||
if(WITH_SQLITE_DEBUG)
|
||||
|
|
Loading…
Reference in a new issue