disabled fast-math by default.
authorVadim Pisarevsky <no@email>
Wed, 17 Aug 2011 09:05:05 +0000 (09:05 +0000)
committerVadim Pisarevsky <no@email>
Wed, 17 Aug 2011 09:05:05 +0000 (09:05 +0000)
CMakeLists.txt

index 9e1347b..5b4c1c7 100644 (file)
@@ -371,11 +371,11 @@ if(CMAKE_COMPILER_IS_GNUCXX)
 
     if(X86 OR X86_64)
         # enable everything, since the available set of instructions is checked at runtime
-        IF ("${CMAKE_GCC_REGEX_VERSION}" VERSION_GREATER 4.5)
+        #IF ("${CMAKE_GCC_REGEX_VERSION}" VERSION_GREATER 4.5)
             SET(_USE_FAST_MATH OFF)
-        ELSE()
-            SET(_USE_FAST_MATH ON)
-        ENDIF()
+        #ELSE()
+        #    SET(_USE_FAST_MATH ON)
+        #ENDIF()
         set(USE_FAST_MATH ${_USE_FAST_MATH} CACHE BOOL "Enable -ffast-math (not recommended for GCC 4.6.x)")
         set(ENABLE_SSE ON CACHE BOOL "Enable SSE instructions")
         set(ENABLE_SSE2 ON CACHE BOOL "Enable SSE2 instructions")