[CMake] Real arithmetic in CMake
David Vowles
david.vowles at adelaide.edu.au
Sun Feb 14 22:23:08 EST 2016
Does CMake provide facilities to perform real arithmetic?
My attempts using the MATH command fail - for example:
math(EXPR R "5.2")
yields the error:
math cannot parse the expression: "5.2": syntax error, unexpected
exp_NUMBER, expecting $end (3)
----------------------------------------------------------------------------
Has any thought been given to or are there plans by the CMake developers
to implement their program in a modern scripting language like Python or
Perl? This would have many advantages including providing a fully
fledged regular expression language, comprehensive math functions, a
comprehensive suite of data-structures, etc. Such scripting languages
have implementations on many platforms.
Many thanks,
David.
More information about the CMake
mailing list