2007-05-01 02:10:37 +04:00
|
|
|
/* This source file must have a .cpp extension so that all C++ compilers
|
|
|
|
recognize the extension without flags. Borland does not know .cxx for
|
|
|
|
example. */
|
2007-04-28 17:35:01 +04:00
|
|
|
#ifndef __cplusplus
|
|
|
|
# error "A C compiler has been selected for C++."
|
|
|
|
#endif
|
|
|
|
|
2014-04-22 18:34:47 +04:00
|
|
|
@CMAKE_CXX_COMPILER_ID_CONTENT@
|
2007-05-23 19:00:54 +04:00
|
|
|
|
2008-03-10 16:32:25 +03:00
|
|
|
/* Construct the string literal in pieces to prevent the source from
|
|
|
|
getting matched. Store it in a pointer rather than an array
|
|
|
|
because some compilers will just produce instructions to fill the
|
|
|
|
array rather than assigning a pointer to a static array. */
|
2010-12-29 23:35:15 +03:00
|
|
|
char const* info_compiler = "INFO" ":" "compiler[" COMPILER_ID "]";
|
2013-10-04 18:10:22 +04:00
|
|
|
#ifdef SIMULATE_ID
|
|
|
|
char const* info_simulate = "INFO" ":" "simulate[" SIMULATE_ID "]";
|
|
|
|
#endif
|
2007-04-28 17:35:01 +04:00
|
|
|
|
2014-01-20 20:57:40 +04:00
|
|
|
#ifdef __QNXNTO__
|
2015-01-14 18:28:59 +03:00
|
|
|
char const* qnxnto = "INFO" ":" "qnxnto[]";
|
2014-01-20 20:57:40 +04:00
|
|
|
#endif
|
|
|
|
|
2008-02-25 17:23:14 +03:00
|
|
|
@CMAKE_CXX_COMPILER_ID_PLATFORM_CONTENT@
|
2013-10-24 21:04:24 +04:00
|
|
|
@CMAKE_CXX_COMPILER_ID_ERROR_FOR_TEST@
|
2008-08-07 17:09:45 +04:00
|
|
|
|
2015-09-15 20:42:26 +03:00
|
|
|
const char* info_language_dialect_default = "INFO" ":" "dialect_default["
|
|
|
|
#if __cplusplus >= 201402L
|
|
|
|
"14"
|
|
|
|
#elif __cplusplus >= 201103L
|
|
|
|
"11"
|
|
|
|
#else
|
|
|
|
"98"
|
|
|
|
#endif
|
|
|
|
"]";
|
|
|
|
|
2008-08-07 17:09:45 +04:00
|
|
|
/*--------------------------------------------------------------------------*/
|
|
|
|
|
|
|
|
int main(int argc, char* argv[])
|
|
|
|
{
|
|
|
|
int require = 0;
|
|
|
|
require += info_compiler[argc];
|
|
|
|
require += info_platform[argc];
|
2011-12-05 18:44:09 +04:00
|
|
|
#ifdef COMPILER_VERSION_MAJOR
|
|
|
|
require += info_version[argc];
|
2013-10-04 18:10:22 +04:00
|
|
|
#endif
|
|
|
|
#ifdef SIMULATE_ID
|
|
|
|
require += info_simulate[argc];
|
|
|
|
#endif
|
|
|
|
#ifdef SIMULATE_VERSION_MAJOR
|
|
|
|
require += info_simulate_version[argc];
|
2011-12-05 18:44:09 +04:00
|
|
|
#endif
|
2008-08-07 17:09:45 +04:00
|
|
|
(void)argv;
|
|
|
|
return require;
|
|
|
|
}
|