[CMake] BOOL type

Alexander Neundorf a.neundorf-work at gmx.net
Mon Dec 17 15:27:42 EST 2007


On Monday 17 December 2007, Brandon Van Every wrote:
> I propose the addition of a BOOL type to the CMake language.
>
>   bool(variable [value])
>
> would declare a variable of type BOOL, with an optional value
> supplied.  Any SET commands performed on the variable in its scope
> would be subject to boolean type constraint.  A BOOL can take on the
> following values.  Any other assignment is an error.
>
>   "TRUE" class - TRUE, 1, Y, Yes, YES, y, yes, ON
>   "FALSE" class - FALSE, 0, N, n, No, NO, OFF, <empty>

Attached is a patch which removes "Y" and "N" from the recognized values for 
true/false.
This patch may break stuff. I don't know if there are many people who rely 
on "N" and "Y".

Alex
-------------- next part --------------
A non-text attachment was scrubbed...
Name: yn.patch
Type: text/x-diff
Size: 1002 bytes
Desc: not available
Url : http://public.kitware.com/pipermail/cmake/attachments/20071217/406aa0e6/yn.bin


More information about the CMake mailing list