summaryrefslogtreecommitdiffstats
path: root/Modules/Compiler
diff options
context:
space:
mode:
authorBen Boeckel <ben.boeckel@kitware.com>2016-08-02 17:10:30 (GMT)
committerBen Boeckel <ben.boeckel@kitware.com>2016-08-02 17:10:41 (GMT)
commit27a3ca15e5e92abbdf9228a5ac83c190a5caf0a8 (patch)
tree598a21e0edaacb3512047560d69106939ff7d8bf /Modules/Compiler
parentcc223e1eed69775a323a59628ad93fc79390c2f2 (diff)
downloadCMake-27a3ca15e5e92abbdf9228a5ac83c190a5caf0a8.zip
CMake-27a3ca15e5e92abbdf9228a5ac83c190a5caf0a8.tar.gz
CMake-27a3ca15e5e92abbdf9228a5ac83c190a5caf0a8.tar.bz2
Intel-C: support gnu89 and gnu99 extension flags
Diffstat (limited to 'Modules/Compiler')
-rw-r--r--Modules/Compiler/Intel-C.cmake4
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/Compiler/Intel-C.cmake b/Modules/Compiler/Intel-C.cmake
index b2ff50d..0efcbc2 100644
--- a/Modules/Compiler/Intel-C.cmake
+++ b/Modules/Compiler/Intel-C.cmake
@@ -21,9 +21,9 @@ endif()
if (NOT CMAKE_C_COMPILER_VERSION VERSION_LESS 12.1)
set(CMAKE_C90_STANDARD_COMPILE_OPTION "${_std}=c89")
- set(CMAKE_C90_EXTENSION_COMPILE_OPTION "${_std}=c89")
+ set(CMAKE_C90_EXTENSION_COMPILE_OPTION "${_std}=gnu89")
set(CMAKE_C99_STANDARD_COMPILE_OPTION "${_std}=c99")
- set(CMAKE_C99_EXTENSION_COMPILE_OPTION "${_std}=c99")
+ set(CMAKE_C99_EXTENSION_COMPILE_OPTION "${_std}=gnu99")
endif()
if(NOT CMAKE_C_COMPILER_VERSION VERSION_LESS 12.1)