GNU-CXX-DetermineCompiler.cmake 492 B

123456789101112131415
  1. set(_compiler_id_pp_test "defined(__GNUC__) || defined(__GNUG__)")
  2. set(_compiler_id_version_compute "
  3. # if defined(__GNUC__)
  4. # define @PREFIX@COMPILER_VERSION_MAJOR @MACRO_DEC@(__GNUC__)
  5. # else
  6. # define @PREFIX@COMPILER_VERSION_MAJOR @MACRO_DEC@(__GNUG__)
  7. # endif
  8. # if defined(__GNUC_MINOR__)
  9. # define @PREFIX@COMPILER_VERSION_MINOR @MACRO_DEC@(__GNUC_MINOR__)
  10. # endif
  11. # if defined(__GNUC_PATCHLEVEL__)
  12. # define @PREFIX@COMPILER_VERSION_PATCH @MACRO_DEC@(__GNUC_PATCHLEVEL__)
  13. # endif")