diff options
| author | Rex Dieter <rdieter@math.unl.edu> | 2015-07-30 09:53:35 -0500 |
|---|---|---|
| committer | Rex Dieter <rdieter@math.unl.edu> | 2015-07-30 09:54:07 -0500 |
| commit | e4735c703d4cffc15b3e9361b488098946324404 (patch) | |
| tree | e9032793694583f9f448644d90c899407afd7914 /CMakeLists.txt | |
| parent | 5b66156be4c372f6486bc47762046fc5c5b8cc0e (diff) | |
better -ffast-math handling
issue #488
See also
http://public.kitware.com/pipermail/cmake/2015-April/060479.html
Diffstat (limited to 'CMakeLists.txt')
| -rw-r--r-- | CMakeLists.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 79f66c35..7898d15c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -190,7 +190,7 @@ if(CMAKE_COMPILER_IS_GNUCC) # For all builds, make sure openjpeg is std99 compliant: # set(CMAKE_C_FLAGS "-Wall -std=c99 ${CMAKE_C_FLAGS}") # FIXME: this setting prevented us from setting a coverage build. # 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}") + SET(OPENJPEG_LIBRARY_COMPILE_OPTIONS ${OPENJPEG_LIBRARY_COMPILE_OPTIONS} "$<$<CONFIG:Release>:-ffast-math>") endif() #----------------------------------------------------------------------------- |
