File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -97,6 +97,10 @@ if(BUILD_TINY_GPU_MODULE)
97
97
add_definitions (-DOPENCV_TINY_GPU_MODULE )
98
98
endif ()
99
99
100
+ if (CV_ICC AND NOT ENABLE_FAST_MATH )
101
+ add_extra_compiler_option ("-fp-model precise" )
102
+ endif ()
103
+
100
104
if (CMAKE_COMPILER_IS_GNUCXX )
101
105
# High level of warnings.
102
106
add_extra_compiler_option (-W )
@@ -364,4 +368,10 @@ if(MSVC)
364
368
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /wd4589" ) # Constructor of abstract class ... ignores initializer for virtual base class 'cv::Algorithm'
365
369
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /wd4359" ) # Alignment specifier is less than actual alignment (4), and will be ignored
366
370
endif ()
371
+
372
+ if (CV_ICC AND NOT ENABLE_NOISY_WARNINGS )
373
+ foreach (flags CMAKE_CXX_FLAGS CMAKE_CXX_FLAGS_RELEASE CMAKE_CXX_FLAGS_DEBUG CMAKE_C_FLAGS CMAKE_C_FLAGS_RELEASE CMAKE_C_FLAGS_DEBUG )
374
+ string (REGEX REPLACE "( |^)/W[0-9]+( |$)" "\\ 1\\ 2" ${flags} "${${flags} }" )
375
+ endforeach ()
376
+ endif ()
367
377
endif ()
You can’t perform that action at this time.
0 commit comments