summaryrefslogtreecommitdiffstats
path: root/Modules/CMakeOBJCCompilerId.m.in
diff options
context:
space:
mode:
Diffstat (limited to 'Modules/CMakeOBJCCompilerId.m.in')
-rw-r--r--Modules/CMakeOBJCCompilerId.m.in9
1 files changed, 9 insertions, 0 deletions
diff --git a/Modules/CMakeOBJCCompilerId.m.in b/Modules/CMakeOBJCCompilerId.m.in
index 91ae064..89bfe02 100644
--- a/Modules/CMakeOBJCCompilerId.m.in
+++ b/Modules/CMakeOBJCCompilerId.m.in
@@ -41,6 +41,14 @@ char const* qnxnto = "INFO" ":" "qnxnto[]";
const char* info_language_standard_default =
"INFO" ":" "standard_default[" C_VERSION "]";
+const char* info_language_extensions_default = "INFO" ":" "extensions_default["
+#if (defined(__clang__) || defined(__GNUC__)) && !defined(__STRICT_ANSI__)
+ "ON"
+#else
+ "OFF"
+#endif
+"]";
+
/*--------------------------------------------------------------------------*/
int main(int argc, char* argv[])
@@ -62,6 +70,7 @@ int main(int argc, char* argv[])
require += info_simulate_version[argc];
#endif
require += info_language_standard_default[argc];
+ require += info_language_extensions_default[argc];
(void)argv;
return require;
}