diff --git a/source/core/CMakeLists.txt b/source/core/CMakeLists.txt index 6deb473..16cf576 100644 --- a/source/core/CMakeLists.txt +++ b/source/core/CMakeLists.txt @@ -232,7 +232,7 @@ IF(STAR_PRECOMPILED_HEADERS) ENDIF() IF(STAR_COMPILER STREQUAL "gnu") - SET_SOURCE_FILES_PROPERTIES(StarImageScaling.cpp PROPERTIES COMPILE_FLAGS "-O2") + SET_SOURCE_FILES_PROPERTIES(StarImageScaling.cpp PROPERTIES COMPILE_FLAGS "-O2 -fno-trapping-math -fno-unsafe-math-optimizations") ENDIF() IF(STAR_USE_JEMALLOC AND JEMALLOC_IS_PREFIXED)