[CMake] Logarithms in MATH expressions
David Cole
david.cole at kitware.com
Wed Dec 12 15:11:42 EST 2007
On 12/12/07, Martin Lütken <mlu at danware.dk> 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://public.kitware.com/pipermail/cmake/attachments/20071212/cee603b0/attachment.htm
More information about the CMake
mailing list