[CMake] Parentheses in conditionals
Pau Garcia i Quiles
pgquiles at elpauer.org
Thu Jun 26 15:06:33 EDT 2008
Quoting Ken Martin <ken.martin at kitware.com>:
Cool, thanks!
> I just checked in a change for feature request #6191, you can now (in CVS
> CMake) use parentheses in if and while command conditionals. E.g.
>
> if (2 GREATER 1 AND (4 LESS 3 OR 5 LESS 6) AND NOT (7 GREATER 8))
> message("")
> endif()
>
> evaluation of parenthetical groups has the highest order of precedence. If
> you bump into any problems with this let me know.
--
Pau Garcia i Quiles
http://www.elpauer.org
(Due to my workload, I may need 10 days to answer)
More information about the CMake
mailing list