summaryrefslogtreecommitdiff
path: root/Modules/Compiler
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2015-01-11 16:14:26 +0100
committerStephen Kelly <steveire@gmail.com>2015-01-15 22:13:22 +0100
commitbfc995cc3b8834281ee86ea2ed248b041d5ad1be (patch)
tree3d8a8c530c0e91beae6b5ba0d5552248156351e9 /Modules/Compiler
parent1532b9214f79517fe74dc674939601c75f4af300 (diff)
downloadcmake-bfc995cc3b8834281ee86ea2ed248b041d5ad1be.tar.gz
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 3404d225ff..8b4788030c 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()