diff options
| author | Mathieu Malaterre <mathieu.malaterre@gmail.com> | 2007-11-08 14:41:45 +0000 |
|---|---|---|
| committer | Mathieu Malaterre <mathieu.malaterre@gmail.com> | 2007-11-08 14:41:45 +0000 |
| commit | 6d7f5ccc8d1ca2c959c8167aa323f2e033997750 (patch) | |
| tree | 58fee88d568c6761df3d57b7a8ba9be6755f5d20 | |
| parent | 4bb067642f155b3cc054f77e1f08b171491a8354 (diff) | |
ENH: do not set ffast-math for all configurations, please
| -rw-r--r-- | CMakeLists.txt | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 17b4098c..832290b5 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -116,7 +116,12 @@ FIND_PATH(JPEG2000_CONFORMANCE_DATA_ROOT testimages.html $ENV{JPEG2000_CONFORMANCE_DATA_ROOT} ) +#----------------------------------------------------------------------------- +# Compiler specific flags: IF(CMAKE_COMPILER_IS_GNUCC) - SET(CMAKE_WARN_FLAGS "-Wall") - SET(CMAKE_C_FLAGS "${CMAKE_WARN_FLAGS} -ffast-math -std=c99 ${CMAKE_C_FLAGS}") + # For all builds, make sure openjpeg is std99 compliant: + SET(CMAKE_C_FLAGS "-Wall -std=c99 ${CMAKE_C_FLAGS}") + # Do not use ffast-math for all build, it would produce incorrect results, only set for release: + SET(CMAKE_C_FLAGS_RELEASE "-ffast-math ${CMAKE_C_FLAGS_RELEASE}") ENDIF(CMAKE_COMPILER_IS_GNUCC) + |
