MantisBT - CMake | |||||
View Issue Details | |||||
ID | Project | Category | View Status | Date Submitted | Last Update |
0008222 | CMake | CMake | public | 2008-12-04 02:01 | 2011-04-04 12:00 |
Reporter | Philip Lowman | ||||
Assigned To | David Cole | ||||
Priority | normal | Severity | feature | Reproducibility | N/A |
Status | closed | Resolution | won't fix | ||
Platform | OS | OS Version | |||
Product Version | CMake-2-6 | ||||
Target Version | Fixed in Version | CMake 2.8.4 | |||
Summary | 0008222: [PATCH] Support for >= and <= operators in IF() conditional | ||||
Description | The patch includes support for the following operators: GREATER_OR_EQUAL LESS_OR_EQUAL VERSION_GREATER_OR_EQUAL VERSION_LESS_OR_EQUAL Basically this is just a nice-to-have for CMake scripters so they can avoid writing ugly code like this: IF(${CMAKE_MAJOR_VERSION} GREATER 1 AND ${CMAKE_MINOR_VERSION} GREATER 5) # CMake >= 2.6 # and start writing code like this: IF(${CMAKE_MAJOR_VERSION} GREATER_OR_EQUAL 2 AND ${CMAKE_MINOR_VERSION} GREATER_OR_EQUAL 6) # CMake >2.6 # or better yet, in the case of a version number, code like this: SET(ver ${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION}) IF(ver VERSION_GREATER_OR_EQUAL 2.6) MESSAGE("HOORAY!") ENDIF() | ||||
Steps To Reproduce | |||||
Additional Information | |||||
Tags | No tags attached. | ||||
Relationships | |||||
Attached Files | or_equal.patch (22,838) 2008-12-04 02:01 https://public.kitware.com/Bug/file/1892/or_equal.patch | ||||
Issue History | |||||
Date Modified | Username | Field | Change | ||
2008-12-04 02:01 | Philip Lowman | New Issue | |||
2008-12-04 02:01 | Philip Lowman | File Added: or_equal.patch | |||
2008-12-04 22:21 | Philip Lowman | Note Added: 0014300 | |||
2008-12-15 10:39 | Bill Hoffman | Status | new => assigned | ||
2008-12-15 10:39 | Bill Hoffman | Assigned To | => Ken Martin | ||
2009-08-13 00:28 | Philip Lowman | Note Added: 0017110 | |||
2010-03-24 18:45 | Lysius | Note Added: 0020003 | |||
2010-12-14 11:09 | David Cole | Assigned To | Ken Martin => | ||
2010-12-15 06:54 | David Cole | Assigned To | => David Cole | ||
2010-12-15 07:01 | David Cole | Note Added: 0024129 | |||
2010-12-15 07:01 | David Cole | Status | assigned => resolved | ||
2010-12-15 07:01 | David Cole | Fixed in Version | => CMake 2.8.4 | ||
2010-12-15 07:01 | David Cole | Resolution | open => won't fix | ||
2011-04-04 12:00 | David Cole | Note Added: 0026052 | |||
2011-04-04 12:00 | David Cole | Status | resolved => closed |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|