summaryrefslogtreecommitdiffstats
path: root/Modules/CMakeCCompilerId.c.in
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2016-04-28 13:26:09 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2016-04-28 13:26:09 (GMT)
commit5b4f771fd7eb02f4bb5248194796d191347e492b (patch)
tree7d496e39d55949952b21b8dc44cde48a47971a25 /Modules/CMakeCCompilerId.c.in
parent954c06803d32ee35c9af94969a4386848e6b7b79 (diff)
parent21b1fa5cb9adccd8d5bbc411c4932cf46d2ed29f (diff)
downloadCMake-5b4f771fd7eb02f4bb5248194796d191347e492b.zip
CMake-5b4f771fd7eb02f4bb5248194796d191347e492b.tar.gz
CMake-5b4f771fd7eb02f4bb5248194796d191347e492b.tar.bz2
Merge topic 'intel-compiler-features'
21b1fa5c Help: Add notes for topic 'intel-compiler-features' 9addce99 Features: Record standard flags for Intel C/C++ on Windows 15a6c950 WCDH: Add Intel to list of supported compilers 36f32ede Features: Record standards and features for Intel C on UNIX d028b948 Features: Specify minimum version Intel C++ 12.1 be910f00 Features: Record standards and features for Intel C++ on UNIX 7f401ae4 Features: Detect C default dialect on MSVC-like compilers
Diffstat (limited to 'Modules/CMakeCCompilerId.c.in')
-rw-r--r--Modules/CMakeCCompilerId.c.in6
1 files changed, 5 insertions, 1 deletions
diff --git a/Modules/CMakeCCompilerId.c.in b/Modules/CMakeCCompilerId.c.in
index c107dfd..95184c9 100644
--- a/Modules/CMakeCCompilerId.c.in
+++ b/Modules/CMakeCCompilerId.c.in
@@ -34,7 +34,11 @@ char const *info_cray = "INFO" ":" "compiler_wrapper[CrayPrgEnv]";
@CMAKE_C_COMPILER_ID_ERROR_FOR_TEST@
#if !defined(__STDC__)
-# define C_DIALECT
+# if defined(_MSC_VER) && !defined(__clang__)
+# define C_DIALECT "90"
+# else
+# define C_DIALECT
+# endif
#elif __STDC_VERSION__ >= 201000L
# define C_DIALECT "11"
#elif __STDC_VERSION__ >= 199901L