[CMake] Re: BOOL type
Brandon Van Every
bvanevery at gmail.com
Mon Dec 17 10:10:10 EST 2007
On Dec 17, 2007 9:17 AM, Brandon Van Every <bvanevery at gmail.com> wrote:
> Equality
> comparison would be by boolean class, not the specific boolean value.
> The following code succeeds:
>
> set(bool_var ON)
> [...]
> if(bool_var EQUAL Yes)
> # this code is executed
That's not the best example as if(bool_var) would have sufficed.
Instead consider:
bool(v1 ON)
bool(v2 Yes)
[...]
if(v1 EQUAL v2)
# this code is executed
Cheers,
Brandon Van Every
More information about the CMake
mailing list