mirror of
https://github.com/opencv/opencv.git
synced 2025-08-06 14:36:36 +08:00
Disable finite-math-only option with ENABLE_FAST_MATH=1 case to handle NaN and Inf checks correctly.
This commit is contained in:
parent
b8e3bc9dd8
commit
2d92f42878
@ -108,6 +108,7 @@ elseif(CV_ICC)
|
||||
elseif(CV_GCC OR CV_CLANG)
|
||||
if(ENABLE_FAST_MATH)
|
||||
add_extra_compiler_option(-ffast-math)
|
||||
add_extra_compiler_option(-fno-finite-math-only)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user