MantisBT - CMake | ||||||||||
| View Issue Details | ||||||||||
| ID | Project | Category | View Status | Date Submitted | Last Update | |||||
| 0011682 | CMake | CMake | public | 2011-01-11 08:32 | 2011-01-15 20:56 | |||||
| Reporter | Maddes | |||||||||
| Assigned To | Brad King | |||||||||
| Priority | normal | Severity | feature | Reproducibility | N/A | |||||
| Status | closed | Resolution | duplicate | |||||||
| Platform | MinGW/GCC | OS | Windows XP | OS Version | x86, SP3 | |||||
| Product Version | CMake 2.8.3 | |||||||||
| Target Version | Fixed in Version | |||||||||
| Summary | 0011682: [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. | |||||||||
| Steps To Reproduce | ||||||||||
| Additional Information | ||||||||||
| Tags | No tags attached. | |||||||||
| Relationships |
| |||||||||
| Attached Files | ||||||||||
| Issue History | ||||||||||
| Date Modified | Username | Field | Change | |||||||
| 2011-01-11 08:32 | Maddes | New Issue | ||||||||
| 2011-01-11 08:41 | Brad King | Relationship added | duplicate of 0006251 | |||||||
| 2011-01-11 08:47 | Brad King | Note Added: 0024575 | ||||||||
| 2011-01-11 08:47 | Brad King | Status | new => closed | |||||||
| 2011-01-11 08:47 | Brad King | Assigned To | => Brad King | |||||||
| 2011-01-11 08:47 | Brad King | Resolution | open => duplicate | |||||||
| Notes | |||||
|
|
|||||
|
|
||||