From 45243cd0098a9f46a16554000b92b1bc79a9d0e1 Mon Sep 17 00:00:00 2001 From: bl Date: Thu, 1 Aug 2019 05:43:55 +0200 Subject: [PATCH] Fix build on SL6.9. Fix #3603. --- CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 71de91e0..6087e3af 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -67,6 +67,8 @@ endif() check_c_compiler_flag("-std=gnu11" COMPILER_SUPPORTS_C11) if(COMPILER_SUPPORTS_C11) set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=gnu11") +else() + set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=gnu99") endif() if(NOT MSVC)