CMakeCXXCompilerId.cpp 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. #ifndef __cplusplus
  2. # error "A C compiler has been selected for C++."
  3. #endif
  4. static char const info_compiler[] = "INFO:compiler["
  5. #if defined(__COMO__)
  6. "Comeau"
  7. #elif defined(__INTEL_COMPILER) || defined(__ICC)
  8. "Intel"
  9. #elif defined(__BORLANDC__)
  10. "Borland"
  11. #elif defined(__WATCOMC__)
  12. "Watcom"
  13. #elif defined(__SUNPRO_CC)
  14. "SunPro"
  15. #elif defined(__HP_aCC)
  16. "HP"
  17. #elif defined(__DECCXX)
  18. "Compaq"
  19. #elif defined(__IBMCPP__)
  20. "VisualAge"
  21. #elif defined(__GNUC__)
  22. "GNUC"
  23. #elif defined(_MSC_VER)
  24. "MSVC"
  25. #elif defined(_COMPILER_VERSION)
  26. "MIPSpro"
  27. /* This compiler is either not known or is too old to define an
  28. identification macro. Try to identify the platform and guess that
  29. it is the native compiler. */
  30. #elif defined(__sgi)
  31. "MIPSpro"
  32. #elif defined(__hpux) || defined(__hpua)
  33. "HP"
  34. #else /* unknown compiler */
  35. ""
  36. #endif
  37. "]";
  38. /* Include the platform identification source. */
  39. #include "CMakePlatformId.h"
  40. /* Make sure the information strings are referenced. */
  41. int main()
  42. {
  43. return ((int)&info_compiler) + ((int)&info_platform);
  44. }