[CMake] BOOL type
Alan W. Irwin
irwin at beluga.phys.uvic.ca
Mon Dec 17 14:19:15 EST 2007
To supplement Brandon's Boolean wishlist, I would like to see some way to
specify a non-default precedence of Boolean operators. Most languages use
parentheses for this, and ideally that would be true for CMake as well.
Then a test of Boolean inequality of A and B would be
IF((A AND NOT B) OR (NOT A AND B))
and a test for Boolean equality of A and B would be
IF((NOT A OR B) AND (A OR NOT B))
Perhaps CMake already has this feature but it is not documented?
Alan
__________________________
Alan W. Irwin
Astronomical research affiliation with Department of Physics and Astronomy,
University of Victoria (astrowww.phys.uvic.ca).
Programming affiliations with the FreeEOS equation-of-state implementation
for stellar interiors (freeeos.sf.net); PLplot scientific plotting software
package (plplot.org); the libLASi project (unifont.org/lasi); the Loads of
Linux Links project (loll.sf.net); and the Linux Brochure Project
(lbproject.sf.net).
__________________________
Linux-powered Science
__________________________
More information about the CMake
mailing list