GNU-C-DetermineCompiler.cmake 369 B

1234567891011
  1. set(_compiler_id_pp_test "defined(__GNUC__)")
  2. set(_compiler_id_version_compute "
  3. # define @PREFIX@COMPILER_VERSION_MAJOR @MACRO_DEC@(__GNUC__)
  4. # if defined(__GNUC_MINOR__)
  5. # define @PREFIX@COMPILER_VERSION_MINOR @MACRO_DEC@(__GNUC_MINOR__)
  6. # endif
  7. # if defined(__GNUC_PATCHLEVEL__)
  8. # define @PREFIX@COMPILER_VERSION_PATCH @MACRO_DEC@(__GNUC_PATCHLEVEL__)
  9. # endif")