From 8c851a1b3f389c2198ee5d85d3f0441d6f25d281 Mon Sep 17 00:00:00 2001 From: Ingo Weyrich Date: Fri, 8 May 2020 14:02:40 +0200 Subject: [PATCH] Also tweak CMAKE_C_FLAGS, fixes #5742 --- CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) 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)