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.


--

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake

Reply via email to