[CMake] [Dev] CMake 2.5-20070519 and tool chain support

Trevor Kellaway tkellaway at asl-electronics.co.uk
Mon May 28 11:53:09 EDT 2007


Alan,

> > I thought this was changed some time ago...
> > YOu are right, we'll have a look why it works this way.
> 
> See bug 4896 
> (http://www.cmake.org/Bug/bug.php?op=show&bugid=4896) for a 
> simple example of the issue of different behaviour for -D 
> options depending on whether the type is specified or not. 
> Personally, I think the solution is to assign a default type 
> if none is specified with the -D command.  ON or OFF gets 
> BOOL everything else is STRING.

Thanks. I dimly remembered you posted something on this.

Also, you posted an issue with "IF ()" as well, I've recently discovered
that "IF ()" tests for boolean macro arguments don't seem to work, if
you assign it to another variable within the macro then it does work.
Have you come across this? If not I'll raise a bug report.

 - TrevK


More information about the CMake mailing list