Skip to content

Commit d206e84

Browse files
committed
cmake: use -fp-model precise with ICC
1 parent 7db13c7 commit d206e84

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

cmake/OpenCVCompilerOptions.cmake

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,10 @@ if(BUILD_TINY_GPU_MODULE)
9797
add_definitions(-DOPENCV_TINY_GPU_MODULE)
9898
endif()
9999

100+
if(CV_ICC AND NOT ENABLE_FAST_MATH)
101+
add_extra_compiler_option("-fp-model precise")
102+
endif()
103+
100104
if(CMAKE_COMPILER_IS_GNUCXX)
101105
# High level of warnings.
102106
add_extra_compiler_option(-W)

0 commit comments

Comments
 (0)