[CMake] math(EXPR) and unary operators

Rolf Eike Beer eike at sf-mail.de
Fri Mar 9 13:06:43 EST 2012


George Koehler wrote:
> math(EXPR) rejects expressions with negative numbers. This is awful
> because math() can reject its own negative results. For example, this
> code fails:
> 
>   math(EXPR negative "1 - 2")
>   math(EXPR sum "100 + ${negative}")

If you are touching this file anyway, do you see any chance of teaching it to 
deal with hex numbers, too? When dealing with the OpenSSL version defines I 
found out that this is currently not supported.

Eike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
URL: <http://www.cmake.org/pipermail/cmake/attachments/20120309/133da940/attachment.pgp>


More information about the CMake mailing list