• Rolf Eike Beer's avatar
    GNUC: also check __GNUG__ define when checking for g++ · 24d73fa0
    Rolf Eike Beer authored
    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.
GNU-CXX-DetermineCompiler.cmake 492 Bytes