https://github.com/Kitware/CMake
Revision 24d73fa0eb2e9f7cdc8fb8192445ce3ee04cf7d3 authored by Rolf Eike Beer on 25 January 2017, 20:53:40 UTC, committed by Rolf Eike Beer on 25 January 2017, 20:53:40 UTC
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.
1 parent 014365e
Tip revision: 24d73fa0eb2e9f7cdc8fb8192445ce3ee04cf7d3 authored by Rolf Eike Beer on 25 January 2017, 20:53:40 UTC
GNUC: also check __GNUG__ define when checking for g++
GNUC: also check __GNUG__ define when checking for g++
Tip revision: 24d73fa
File | Mode | Size |
---|---|---|
Auxiliary | ||
Help | ||
Licenses | ||
Modules | ||
Packaging | ||
Source | ||
Templates | ||
Tests | ||
Utilities | ||
.clang-format | -rw-r--r-- | 217 bytes |
.gitattributes | -rw-r--r-- | 658 bytes |
.gitignore | -rw-r--r-- | 64 bytes |
.hooks-config.bash | -rw-r--r-- | 435 bytes |
CMakeCPack.cmake | -rw-r--r-- | 9.5 KB |
CMakeCPackOptions.cmake.in | -rw-r--r-- | 12.6 KB |
CMakeGraphVizOptions.cmake | -rw-r--r-- | 153 bytes |
CMakeLists.txt | -rw-r--r-- | 30.1 KB |
CMakeLogo.gif | -rw-r--r-- | 4.4 KB |
CONTRIBUTING.rst | -rw-r--r-- | 1.7 KB |
CTestConfig.cmake | -rw-r--r-- | 440 bytes |
CTestCustom.cmake.in | -rw-r--r-- | 6.1 KB |
CompileFlags.cmake | -rw-r--r-- | 2.9 KB |
Copyright.txt | -rw-r--r-- | 4.9 KB |
DartConfig.cmake | -rw-r--r-- | 374 bytes |
README.rst | -rw-r--r-- | 2.9 KB |
bootstrap | -rwxr-xr-x | 48.3 KB |
cmake_uninstall.cmake.in | -rw-r--r-- | 790 bytes |
configure | -rwxr-xr-x | 99 bytes |
doxygen.config | -rw-r--r-- | 27.4 KB |
Computing file changes ...