2007-04-30 22:10:37 +00: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 13:35:01 +00:00
|
|
|
#ifndef __cplusplus
|
|
|
|
# error "A C compiler has been selected for C++."
|
|
|
|
#endif
|
|
|
|
|
2014-04-22 14:34:47 +00:00
|
|
|
@CMAKE_CXX_COMPILER_ID_CONTENT@
|
2007-05-23 15:00:54 +00:00
|
|
|
|
2008-03-10 13:32:25 +00: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 20:35:15 +00:00
|
|
|
char const* info_compiler = "INFO" ":" "compiler[" COMPILER_ID "]";
|
2013-10-04 14:10:22 +00:00
|
|
|
#ifdef SIMULATE_ID
|
|
|
|
char const* info_simulate = "INFO" ":" "simulate[" SIMULATE_ID "]";
|
|
|
|
#endif
|
2007-04-28 13:35:01 +00:00
|
|
|
|
2014-01-20 16:57:40 +00:00
|
|
|
#ifdef __QNXNTO__
|
|
|
|
char const* qnxnto = "INFO" ":" "qnxnto";
|
|
|
|
#endif
|
|
|
|
|
2008-02-25 14:23:14 +00:00
|
|
|
@CMAKE_CXX_COMPILER_ID_PLATFORM_CONTENT@
|
2013-10-24 17:04:24 +00:00
|
|
|
@CMAKE_CXX_COMPILER_ID_ERROR_FOR_TEST@
|
2008-08-07 13:09:45 +00:00
|
|
|
|
|
|
|
/*--------------------------------------------------------------------------*/
|
|
|
|
|
|
|
|
int main(int argc, char* argv[])
|
|
|
|
{
|
|
|
|
int require = 0;
|
|
|
|
require += info_compiler[argc];
|
|
|
|
require += info_platform[argc];
|
2011-12-05 14:44:09 +00:00
|
|
|
#ifdef COMPILER_VERSION_MAJOR
|
|
|
|
require += info_version[argc];
|
2013-10-04 14:10:22 +00:00
|
|
|
#endif
|
|
|
|
#ifdef SIMULATE_ID
|
|
|
|
require += info_simulate[argc];
|
|
|
|
#endif
|
|
|
|
#ifdef SIMULATE_VERSION_MAJOR
|
|
|
|
require += info_simulate_version[argc];
|
2011-12-05 14:44:09 +00:00
|
|
|
#endif
|
2008-08-07 13:09:45 +00:00
|
|
|
(void)argv;
|
|
|
|
return require;
|
|
|
|
}
|