On 12/12/07, Martin Lütken <[EMAIL PROTECTED]> wrote:
>
> Anyone who knows wheter it's possible to calculate logarithms in MATH
> expressions in CMake?
>
Would like a log2 or alternatively "ln" (natural).
>
Not directly, no.
The CMake MATH EXPR parser handles the following tokens:
Decimal numbers:
[0-9][0-9]*
And the basic C/C++ math, bit-operation and grouping operators:
"+"
"-"
"*"
"/"
"%"
"\|"
"&"
"^"
"~"
"<<"
">>"
"("
")"
See the files CMake/Source/cmExpr* for more info...
HTH,
David
_______________________________________________
CMake mailing list
[email protected]
http://www.cmake.org/mailman/listinfo/cmake