diff --git a/cmake/OpenCVCompilerOptions.cmake b/cmake/OpenCVCompilerOptions.cmake index 3f3358aae57115921272aef30d4375a75d9a0ab8..d4600943fb0d47e59b264f3174c47cc91dda9c37 100644 --- a/cmake/OpenCVCompilerOptions.cmake +++ b/cmake/OpenCVCompilerOptions.cmake @@ -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()