mirror of
https://github.com/opencv/opencv.git
synced 2024-12-18 11:28:02 +08:00
disabled fast-math by default.
This commit is contained in:
parent
b3ae2c181a
commit
d752c2b674
@ -371,11 +371,11 @@ if(CMAKE_COMPILER_IS_GNUCXX)
|
|||||||
|
|
||||||
if(X86 OR X86_64)
|
if(X86 OR X86_64)
|
||||||
# enable everything, since the available set of instructions is checked at runtime
|
# 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)
|
SET(_USE_FAST_MATH OFF)
|
||||||
ELSE()
|
#ELSE()
|
||||||
SET(_USE_FAST_MATH ON)
|
# SET(_USE_FAST_MATH ON)
|
||||||
ENDIF()
|
#ENDIF()
|
||||||
set(USE_FAST_MATH ${_USE_FAST_MATH} CACHE BOOL "Enable -ffast-math (not recommended for GCC 4.6.x)")
|
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_SSE ON CACHE BOOL "Enable SSE instructions")
|
||||||
set(ENABLE_SSE2 ON CACHE BOOL "Enable SSE2 instructions")
|
set(ENABLE_SSE2 ON CACHE BOOL "Enable SSE2 instructions")
|
||||||
|
Loading…
Reference in New Issue
Block a user