summaryrefslogtreecommitdiffstats
path: root/Modules/Compiler
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2015-01-11 15:14:26 (GMT)
committerStephen Kelly <steveire@gmail.com>2015-01-15 21:13:22 (GMT)
commitbfc995cc3b8834281ee86ea2ed248b041d5ad1be (patch)
tree3d8a8c530c0e91beae6b5ba0d5552248156351e9 /Modules/Compiler
parent1532b9214f79517fe74dc674939601c75f4af300 (diff)
downloadCMake-bfc995cc3b8834281ee86ea2ed248b041d5ad1be.zip
CMake-bfc995cc3b8834281ee86ea2ed248b041d5ad1be.tar.gz
CMake-bfc995cc3b8834281ee86ea2ed248b041d5ad1be.tar.bz2
Features: Remove wrong content from else() condition.
As this is not elseif(), the content has no effect. Rather than changing it to an elseif(), remove the conditional content. All versions of GNU prior to 5.0 default to C90/89. Clang-C.cmake has a similar code block which correctly uses elseif() for setting the default C dialect to C99. That may have been updated from a C90 default at some point, so leave the version condition there in place for now.
Diffstat (limited to 'Modules/Compiler')
-rw-r--r--Modules/Compiler/GNU-C.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/Compiler/GNU-C.cmake b/Modules/Compiler/GNU-C.cmake
index 3404d22..8b47880 100644
--- a/Modules/Compiler/GNU-C.cmake
+++ b/Modules/Compiler/GNU-C.cmake
@@ -14,7 +14,7 @@ endif()
if (NOT CMAKE_C_COMPILER_VERSION VERSION_LESS 5.0)
set(CMAKE_C_STANDARD_DEFAULT 11)
-else(NOT CMAKE_C_COMPILER_VERSION VERSION_LESS 4.7)
+else()
set(CMAKE_C_STANDARD_DEFAULT 90)
endif()