From e4af18baa64b238df57f343df451638dc0275d19 Mon Sep 17 00:00:00 2001 From: fp64 <106717720+fp64@users.noreply.github.com> Date: Sat, 16 Sep 2023 14:17:40 -0400 Subject: [PATCH] Add -fno-math-errno Resolves #18156. --- CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 064888524969..4f0791637779 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -399,6 +399,8 @@ if(NOT MSVC) set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -parallel -fopenmp") endif() + add_definitions(-fno-math-errno) + if(X86 OR X86_64) # enable sse2 code generation add_definitions(-msse2)