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.
This commit is contained in:
Stephen Kelly 2015-01-11 16:14:26 +01:00
parent 1532b9214f
commit bfc995cc3b
1 changed files with 1 additions and 1 deletions

View File

@ -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()