The following issue has been SUBMITTED. ====================================================================== http://public.kitware.com/Bug/view.php?id=11682 ====================================================================== Reported By: Maddes Assigned To: ====================================================================== Project: CMake Issue ID: 11682 Category: CMake Reproducibility: N/A Severity: feature Priority: normal Status: new ====================================================================== Date Submitted: 2011-01-11 08:32 EST Last Modified: 2011-01-11 08:32 EST ====================================================================== Summary: [enhancement] Add GNU versions for CMakeLists.txt processing, just like MSVC_VERSION Description: It would be great to determine the version of the GNU compiler, so that options can be avoided for older/newer versions of GCC and G++ (e.g. -Wextra, etc.). A similar variable for VisualC++ already exists: MSVC_VERSION.
GCC/G++ already provide their version number via the macro definitions __GNUC__ (=major), __GNUC_MINOR__, __GNUC_PATCHLEVEL__. Having GNU<LANG>_MAJOR, GNU<LANG>_MINOR, GNU<LANG>_PATCHLEVEL available for use in CMakeLists.txt would be very useful. ====================================================================== Issue History Date Modified Username Field Change ====================================================================== 2011-01-11 08:32 Maddes New Issue ====================================================================== _______________________________________________ cmake-developers mailing list cmake-developers@cmake.org http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers