mirror of
https://github.com/opencv/opencv.git
synced 2026-07-30 15:53:03 +04:00
Merge pull request #23881 from asmorkalov:as/fast_math_nan
Disable finite-math-only option with ENABLE_FAST_MATH=1 case to handle NaN and Inf checks correctly
This commit is contained in:
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user