summaryrefslogtreecommitdiffstats
path: root/Modules/CMakeCCompilerId.c.in
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2015-09-18 14:00:51 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2015-09-18 14:00:51 (GMT)
commite3ace61212db5c960132ef0868f49cf05fe1c021 (patch)
treeeec9428aeaaa0b2c026ba51ac7cd800ba98bd27e /Modules/CMakeCCompilerId.c.in
parent418f08d029e35f1776810d3ff3488e702004b023 (diff)
parent7235334a2f1b9a627cc1cdbc701ae0768b6e32c3 (diff)
downloadCMake-e3ace61212db5c960132ef0868f49cf05fe1c021.zip
CMake-e3ace61212db5c960132ef0868f49cf05fe1c021.tar.gz
CMake-e3ace61212db5c960132ef0868f49cf05fe1c021.tar.bz2
Merge topic 'compute-default-dialect'
7235334a Project: Determine default language dialect for the compiler.
Diffstat (limited to 'Modules/CMakeCCompilerId.c.in')
-rw-r--r--Modules/CMakeCCompilerId.c.in11
1 files changed, 11 insertions, 0 deletions
diff --git a/Modules/CMakeCCompilerId.c.in b/Modules/CMakeCCompilerId.c.in
index 09ae509..b224007 100644
--- a/Modules/CMakeCCompilerId.c.in
+++ b/Modules/CMakeCCompilerId.c.in
@@ -24,6 +24,17 @@ char const* qnxnto = "INFO" ":" "qnxnto[]";
@CMAKE_C_COMPILER_ID_PLATFORM_CONTENT@
@CMAKE_C_COMPILER_ID_ERROR_FOR_TEST@
+const char* info_language_dialect_default = "INFO" ":" "dialect_default["
+#if !defined(__STDC_VERSION__)
+ "90"
+#elif __STDC_VERSION__ >= 201000L
+ "11"
+#elif __STDC_VERSION__ >= 199901L
+ "99"
+#else
+#endif
+"]";
+
/*--------------------------------------------------------------------------*/
#ifdef ID_VOID_MAIN