summaryrefslogtreecommitdiffstats
path: root/Modules/Compiler/GNU-C-DetermineCompiler.cmake
Commit message (Collapse)AuthorAgeFilesLines
* GNUC: also check __GNUG__ define when checking for g++Rolf Eike Beer2017-01-251-0/+11
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.