[CMake] IF( ${VAR} ) behaviour
Fernando Cacciola
fernando.cacciola at gmail.com
Fri Feb 22 09:27:32 EST 2008
Hi people,
Consider the following (tested in 2.4.7):
set ( VAR "whatever" )
message( STATUS "VAR=${VAR}" )
if ( ${VAR} )
message( STATUS "VAR evaluates to true" )
else ( ${VAR} )
message( STATUS "VAR evaluates to false" )
endif( ${VAR} )
it prints "VAR evaluates to false".
Is that expected?? The documentation of IF() doesn't match this behaviour
AFAICS.
TIA
--
Fernando Cacciola
SciSoft
http://fcacciola.50webs.com
http://groups.google.com/group/cppba
More information about the CMake
mailing list