1
0

CMakeCXXCompilerId.cpp.in 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. /* This source file must have a .cpp extension so that all C++ compilers
  2. recognize the extension without flags. Borland does not know .cxx for
  3. example. */
  4. #ifndef __cplusplus
  5. # error "A C compiler has been selected for C++."
  6. #endif
  7. /* Provide main() so the program can link. */
  8. int main() { return 0; }
  9. #if defined(__COMO__)
  10. # define COMPILER_ID "Comeau"
  11. #elif defined(__INTEL_COMPILER) || defined(__ICC)
  12. # define COMPILER_ID "Intel"
  13. #elif defined(__BORLANDC__)
  14. # define COMPILER_ID "Borland"
  15. #elif defined(__WATCOMC__)
  16. # define COMPILER_ID "Watcom"
  17. #elif defined(__SUNPRO_CC)
  18. # define COMPILER_ID "SunPro"
  19. #elif defined(__HP_aCC)
  20. # define COMPILER_ID "HP"
  21. #elif defined(__DECCXX)
  22. # define COMPILER_ID "Compaq"
  23. #elif defined(__IBMCPP__)
  24. # define COMPILER_ID "VisualAge"
  25. #elif defined(__PGI)
  26. # define COMPILER_ID "PGI"
  27. #elif defined(__GNUC__)
  28. # define COMPILER_ID "GNU"
  29. #elif defined(_MSC_VER)
  30. # define COMPILER_ID "MSVC"
  31. #elif defined(__ADSPBLACKFIN__) || defined(__ADSPTS__) || defined(__ADSP21000__)
  32. /* Analog Devices C++ compiler for Blackfin, TigerSHARC and
  33. SHARC (21000) DSPs */
  34. # define COMPILER_ID "ADSP"
  35. #elif defined(_COMPILER_VERSION)
  36. # define COMPILER_ID "MIPSpro"
  37. /* This compiler is either not known or is too old to define an
  38. identification macro. Try to identify the platform and guess that
  39. it is the native compiler. */
  40. #elif defined(__sgi)
  41. # define COMPILER_ID "MIPSpro"
  42. #elif defined(__hpux) || defined(__hpua)
  43. # define COMPILER_ID "HP"
  44. #else /* unknown compiler */
  45. # define COMPILER_ID ""
  46. #endif
  47. char info_compiler[] = "INFO:compiler[" COMPILER_ID "]";
  48. @CMAKE_CXX_COMPILER_ID_PLATFORM_CONTENT@