Disable finite-math-only option with ENABLE_FAST_MATH=1 case to handle NaN and Inf checks correctly.

pull/23881/head
Alexander Smorkalov 2 years ago
parent b8e3bc9dd8
commit 2d92f42878
  1. 1
      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()

Loading…
Cancel
Save