summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorChristian Pfeiffer <cpfeiffer@live.de>2018-01-27 14:08:00 (GMT)
committerChristian Pfeiffer <cpfeiffer@live.de>2018-01-27 14:08:00 (GMT)
commit4a5727d375e893f147b46e2a58aea647a9afddcf (patch)
tree8aada8a4cbf61eb261e84564313e3b2442aec65c /Modules
parentbe2f0509037880a94f487867bee088a231054f4b (diff)
downloadCMake-4a5727d375e893f147b46e2a58aea647a9afddcf.zip
CMake-4a5727d375e893f147b46e2a58aea647a9afddcf.tar.gz
CMake-4a5727d375e893f147b46e2a58aea647a9afddcf.tar.bz2
Intel: Correct the C11 ext flag
Intel does not support a 'gnu11' standard flag, only 'c11'.
Diffstat (limited to 'Modules')
-rw-r--r--Modules/Compiler/Intel-C.cmake3
1 files changed, 2 insertions, 1 deletions
diff --git a/Modules/Compiler/Intel-C.cmake b/Modules/Compiler/Intel-C.cmake
index 4e4af29..3e0439fa 100644
--- a/Modules/Compiler/Intel-C.cmake
+++ b/Modules/Compiler/Intel-C.cmake
@@ -25,7 +25,8 @@ else()
if (NOT CMAKE_C_COMPILER_VERSION VERSION_LESS 15.0.0)
set(CMAKE_C11_STANDARD_COMPILE_OPTION "-std=c11")
- set(CMAKE_C11_EXTENSION_COMPILE_OPTION "-std=gnu11")
+ # todo: there is no gnu11 value supported; figure out what to do
+ set(CMAKE_C11_EXTENSION_COMPILE_OPTION "-std=c11")
endif()
if (NOT CMAKE_C_COMPILER_VERSION VERSION_LESS 12.0)