summaryrefslogtreecommitdiffstats
path: root/Modules/Compiler/GNU-DetermineCompiler.cmake
blob: abb19e7374919686a18908ca7c41c52dcee9bb0a (plain)
1
2
3
4
5
6
7
8
9

set(_compiler_id_pp_test "defined(__GNUC__)")

set(_compiler_id_version_compute "
# define COMPILER_VERSION_MAJOR DEC(__GNUC__)
# define COMPILER_VERSION_MINOR DEC(__GNUC_MINOR__)
# if defined(__GNUC_PATCHLEVEL__)
#  define COMPILER_VERSION_PATCH DEC(__GNUC_PATCHLEVEL__)
# endif")