diff options
author | Raul Tambre <raul@tambre.ee> | 2021-05-29 13:54:41 (GMT) |
---|---|---|
committer | Raul Tambre <raul@tambre.ee> | 2021-09-28 18:24:53 (GMT) |
commit | fc3a1cbdd81f350b897c6cd06d75e8e228514773 (patch) | |
tree | 8d87587807fcfeb6bfb1d506f3e7a3f2441389d9 /Modules/CMakeOBJCCompilerId.m.in | |
parent | 2adfd95d793b516fdef2d02a60b9529f525f6374 (diff) | |
download | CMake-fc3a1cbdd81f350b897c6cd06d75e8e228514773.zip CMake-fc3a1cbdd81f350b897c6cd06d75e8e228514773.tar.gz CMake-fc3a1cbdd81f350b897c6cd06d75e8e228514773.tar.bz2 |
CompilerID: Compiler extensions default detection
Diffstat (limited to 'Modules/CMakeOBJCCompilerId.m.in')
-rw-r--r-- | Modules/CMakeOBJCCompilerId.m.in | 9 |
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; } |