Skip to content

GNUC: also check __GNUG__ define when checking for g++

Rolf Eike Beer requested to merge DerDakon/cmake:GNUG_define into master

At least the scratchbox compiler for the N900, which basically is a gcc 4.2, sets only GNUG in C++ mode, but not GNUC. It does indeed set GNUC_MINOR and GNUC_PATCHLEVEL. Extend the compiler detection code for GNU compilers in C++ mode to look at GNUG in case GNUC is absent.

Merge request reports