mirror of
https://github.com/opencv/opencv.git
synced 2024-11-25 19:50:38 +08:00
cmake: use -fp-model precise with ICC
This commit is contained in:
parent
7db13c7aab
commit
d206e84a13
@ -97,6 +97,10 @@ if(BUILD_TINY_GPU_MODULE)
|
||||
add_definitions(-DOPENCV_TINY_GPU_MODULE)
|
||||
endif()
|
||||
|
||||
if(CV_ICC AND NOT ENABLE_FAST_MATH)
|
||||
add_extra_compiler_option("-fp-model precise")
|
||||
endif()
|
||||
|
||||
if(CMAKE_COMPILER_IS_GNUCXX)
|
||||
# High level of warnings.
|
||||
add_extra_compiler_option(-W)
|
||||
|
Loading…
Reference in New Issue
Block a user