cmake: use -fp-model precise with ICC

pull/7868/head
Alexander Alekhin 8 years ago
parent 7db13c7aab
commit d206e84a13
  1. 4
      cmake/OpenCVCompilerOptions.cmake

@ -97,6 +97,10 @@ if(BUILD_TINY_GPU_MODULE)
add_definitions(-DOPENCV_TINY_GPU_MODULE) add_definitions(-DOPENCV_TINY_GPU_MODULE)
endif() endif()
if(CV_ICC AND NOT ENABLE_FAST_MATH)
add_extra_compiler_option("-fp-model precise")
endif()
if(CMAKE_COMPILER_IS_GNUCXX) if(CMAKE_COMPILER_IS_GNUCXX)
# High level of warnings. # High level of warnings.
add_extra_compiler_option(-W) add_extra_compiler_option(-W)

Loading…
Cancel
Save