Re: [CMake] Simple truth question

2007-04-11 Thread Alan W. Irwin
On 2007-04-11 19:48-0700 E. Wing wrote: Okay, here's a silly question. Why doesn't this work as I think it should? SET(IS_TRUE TRUE) IF(${IS_TRUE}) MESSAGE("IS_TRUE Is true") ELSE(${IS_TRUE}) MESSAGE("IS_TRUE Is false") ENDIF(${IS_TRUE}) Replace ${IS_TRUE} by IS_TRUE, and it

[CMake] Simple truth question

2007-04-11 Thread E. Wing
Okay, here's a silly question. Why doesn't this work as I think it should? SET(IS_TRUE TRUE) IF(${IS_TRUE}) MESSAGE("IS_TRUE Is true") ELSE(${IS_TRUE}) MESSAGE("IS_TRUE Is false") ENDIF(${IS_TRUE}) I get "IS_TRUE Is false" when I run this. The same thing for SET(IS_TRUE YES) and