On Dec 17, 2007 9:17 AM, Brandon Van Every <[EMAIL PROTECTED]> 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 _______________________________________________ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake