diff --git a/CMakeLists.txt b/CMakeLists.txt index 532353a8b..cbddde251 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -130,6 +130,7 @@ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Werror=delete-incomplete") # Do net set math errno, as we never check its value. set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fno-math-errno") +set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fno-math-errno") # Special treatment for x87 and x86-32 SSE (see GitHub issue #4324) include(FindX87Math)