MantisBT - CMake | |||||
View Issue Details | |||||
ID | Project | Category | View Status | Date Submitted | Last Update |
0013376 | CMake | CMake | public | 2012-07-04 22:59 | 2012-12-03 07:46 |
Reporter | Bruce Cartland | ||||
Assigned To | |||||
Priority | low | Severity | minor | Reproducibility | always |
Status | closed | Resolution | no change required | ||
Platform | Windows | OS | XP | OS Version | SP3 |
Product Version | CMake 2.8.8 | ||||
Target Version | Fixed in Version | ||||
Summary | 0013376: For unset variables IF(${var}) and IF(NOT ${var}) both return FALSE which fails to work for predefined vars such as CYGWIN | ||||
Description | (I'm a noob so please excuse if this is already report, not formatted correctly, or invalid :) See steps to reproduce. | ||||
Steps To Reproduce | message(STATUS "CYGWIN = '${CYGWIN}'") if(${CYGWIN}) message(STATUS "CYGWIN set") else() set(CYGWIN 0) #this "fixes" the problem and results in expected behaviour message(STATUS "CYGWIN not set") endif() if(NOT ${CYGWIN}) message(STATUS "CYGWIN not set") else() message(STATUS "CYGWIN set - or is it?") endif() | ||||
Additional Information | The script in steps to reproduce results in the following output: -- CYGWIN = '' -- CYGWIN not set -- CYGWIN set - or is it? Seems to me that FALSE should be defined to include blank as well as NO, etc OR variables such as CYGWIN should be set to 0 and not left blank. | ||||
Tags | No tags attached. | ||||
Relationships | |||||
Attached Files | |||||
Issue History | |||||
Date Modified | Username | Field | Change | ||
2012-07-04 22:59 | Bruce Cartland | New Issue | |||
2012-07-04 23:02 | Bruce Cartland | Note Added: 0029909 | |||
2012-07-09 09:37 | Brad King | Note Added: 0030002 | |||
2012-07-09 09:37 | Brad King | Status | new => resolved | ||
2012-07-09 09:37 | Brad King | Resolution | open => no change required | ||
2012-12-03 07:46 | David Cole | Note Added: 0031810 | |||
2012-12-03 07:46 | David Cole | Status | resolved => closed |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|