View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0000641CMakepublic2004-03-02 01:002004-03-02 02:07
ReporterJohnny Lai 
Assigned ToBill Hoffman 
PriorityhighSeveritymajorReproducibilityalways
StatusclosedResolutionno change required 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version 
Summary0000641: IF(variable) does not evaluate correctly for numerical values
DescriptionAccording 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
TagsNo tags attached.
Attached Files

 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.

 Issue History
Date Modified Username Field Change


Copyright © 2000 - 2018 MantisBT Team