summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohnathan Corgan <johnathan@corganlabs.com>2016-08-01 11:58:01 -0700
committerJohnathan Corgan <johnathan@corganlabs.com>2016-08-01 11:58:01 -0700
commit611493e12af8edaf50645e19aa94372ec1c3e387 (patch)
treebaa9c8e7f3a934775de85fbc3ee9efa93f70d513
parent05bdf36c65dc6af32185053eb26cca793747d214 (diff)
cmake: revert GCC standard to gnu99 to accomodate 4.6.3
* Oldest support gcc for 3.7 series is on Ubuntu 12.04, gcc 4.6.3, which does not support gnu11. * Support for Ubuntu 12.04 will drop off for the 3.8 release.
-rw-r--r--CMakeLists.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 2834fc693d..9e52f73b68 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -72,9 +72,9 @@ ELSE()
ENDIF()
IF(CMAKE_C_COMPILER_ID STREQUAL "GNU")
- SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=gnu11")
+ SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=gnu99")
ELSEIF(CMAKE_C_COMPILER_ID STREQUAL "Clang")
- SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=gnu11")
+ SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=gnu99")
ELSEIF(CMAKE_C_COMPILER_ID STREQUAL "MSVC")
SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=c11")
ELSE()