[CMake] BOOL type

Brandon Van Every bvanevery at gmail.com
Tue Dec 18 11:59:30 EST 2007


On Dec 18, 2007 10:02 AM, Pau Garcia i Quiles <pgquiles at elpauer.org> wrote:
>
> What about doing the opposite of what Alex' patch did? What about
> making Y, YES, 1, ON synonyms? It's more or less what Brandon proposed
> but without introducing a BOOL(variable bool_value) command.

That's the exact opposite of why I made my proposal.  I want the Y,
YES, 1, ON, N, NO, OFF pollution *eliminated* from strings.  I
proposed bool(var [value]) because it doesn't break anything.  It
encapsulates the desired behavior in a type, same as a lot of
programming languages do.  Once encapsulated, I'd be free to
set_properties(GLOBAL PROPERTIES REQUIRE_BOOL TRUE) and get rid of the
string pollution.  I'm happy, the backwards compatible crowd is happy.


Cheers,
Brandon Van Every


More information about the CMake mailing list