View Issue Details [ Jump to Notes ] | [ Print ] | ||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||
0000641 | CMake | public | 2004-03-02 01:00 | 2004-03-02 02:07 | |||||
Reporter | Johnny Lai | ||||||||
Assigned To | Bill Hoffman | ||||||||
Priority | high | Severity | major | Reproducibility | always | ||||
Status | closed | Resolution | no change required | ||||||
Platform | OS | OS Version | |||||||
Product Version | |||||||||
Target Version | Fixed in Version | ||||||||
Summary | 0000641: IF(variable) does not evaluate correctly for numerical values | ||||||||
Description | According to documentation IF should evalute to true for anything besides " True if the variable's value is not empty, 0, FALSE, OFF, or NOTFOUND". However the following code on cmake 1.8.3 Redhat 9 SET(VAR 3) IF(${VAR}) MESSAGE("${VAR} is true") ELSE(${VAR}) MESSAGE("${VAR} is false") ENDIF(${VAR}) Outputs: 3 is false | ||||||||
Tags | No tags attached. | ||||||||
Attached Files | |||||||||
Relationships | |
Relationships |
Notes | |
(0000714) Johnny Lai (reporter) 2004-03-02 02:07 |
My mistake I should not add a ${} around the variables in an IF statement. |
Notes |
Issue History | |||
Date Modified | Username | Field | Change |
Issue History |
Copyright © 2000 - 2018 MantisBT Team |