summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorBen Boeckel <ben.boeckel@kitware.com>2016-08-02 15:31:50 (GMT)
committerBen Boeckel <ben.boeckel@kitware.com>2016-08-02 15:42:45 (GMT)
commitcc223e1eed69775a323a59628ad93fc79390c2f2 (patch)
tree9feda033e50705707a64b8a7a62a870c2212b8d8 /Modules
parente31084e65745f9dd422c6aff0a2ed4ada6918805 (diff)
downloadCMake-cc223e1eed69775a323a59628ad93fc79390c2f2.zip
CMake-cc223e1eed69775a323a59628ad93fc79390c2f2.tar.gz
CMake-cc223e1eed69775a323a59628ad93fc79390c2f2.tar.bz2
Intel-C: declare support for gnu11
Without extensions, functions like `strdup` are not available since they are actually controlled by feature flags such as _SVID_SOURCE and _BSD_SOURCE. When using `-std=c11` on Intel, none of these flags are set, so the functions are not declared properly leading to compile errors. Reported-by: Adam J. Stewart <ajstewart426@gmail.com> Closes: #16226
Diffstat (limited to 'Modules')
-rw-r--r--Modules/Compiler/Intel-C.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/Compiler/Intel-C.cmake b/Modules/Compiler/Intel-C.cmake
index eb9602a..b2ff50d 100644
--- a/Modules/Compiler/Intel-C.cmake
+++ b/Modules/Compiler/Intel-C.cmake
@@ -16,7 +16,7 @@ endif()
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}=c11")
+ set(CMAKE_C11_EXTENSION_COMPILE_OPTION "${_std}=gnu11")
endif()
if (NOT CMAKE_C_COMPILER_VERSION VERSION_LESS 12.1)