[CMake] BOOL type
Brandon Van Every
bvanevery at gmail.com
Mon Dec 17 14:42:19 EST 2007
On Dec 17, 2007 2:19 PM, Alan W. Irwin <irwin at beluga.phys.uvic.ca> wrote:
> 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.
>
> Perhaps CMake already has this feature but it is not documented?
No it doesn't. CMake doesn't accept sub-parentheses in conditionals.
I found this out when automatically translating a pile of parentheses
from Autoconf. Aside from being convenient to programmers, it would
make migrations from Autoconf easier. I had to write a substantial
body of code to do it. If the feature were present, translation would
be much more 1:1 and easier to implement.
Cheers,
Brandon Van Every
More information about the CMake
mailing list