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)