[CMake] how to add 2 numbers with cmake ?

Andy Cedilnik andy.cedilnik at kitware.com
Fri Jan 20 10:10:37 EST 2006


Hi,

MATH was added in CVS and it will be in 2.4.

       Andy

Gaetan Lehmann wrote:

> On Fri, 20 Jan 2006 14:25:19 +0100, Filipe Sousa <filipe at ipb.pt> wrote:
>
>> -----BEGIN PGP SIGNED MESSAGE-----
>> Hash: SHA1
>>
>> Gaetan Lehmann wrote:
>>
>>> Hi,
>>>
>>> I'm sure it's obvious for everybody here, but I can't find how to add 2
>>> numbers with cmake.
>>> Can someone show me how to do that ?
>>>
>>> Thanks,
>>>
>>> Gaetan
>>>
>>
>> fsousa at neptuno ~ $ cmake --help-command MATH
>> cmake version 2.3-20060119
>>   MATH
>>        Mathematical expressions.
>>
>>          MATH(EXPR <output variable> <math expression>)
>>
>>        EXPR evaluates mathematical expression and return result in the
>> output
>>        variable.  Example mathematical expression is '5 * ( 10 + 13 )'.
>>
>
> [glehmann at n4 ~]$ cmake --help-command MATH
> cmake version 2.2-patch 3
> Argument "MATH" to --help-command is not a CMake command.  Use  
> --help-command-list to see all commands.
>
> I can't force users to get a cvs cmake :-/
> Nothing else ? Must I wait for the next release ?
>
>
>> -----BEGIN PGP SIGNATURE-----
>> Version: GnuPG v1.4.2 (GNU/Linux)
>>
>> iD8DBQFD0OS/bQdNYqwwwCwRAsGoAJ9y81wX+eHhVf8T8hvv8TVWGo2ihgCfV0N7
>> WOljl4dPii9Oyr8P0jw2xJc=
>> =ztUH
>> -----END PGP SIGNATURE-----
>> _______________________________________________
>> CMake mailing list
>> CMake at cmake.org
>> http://www.cmake.org/mailman/listinfo/cmake
>
>
>
>


-- 
Andy Cedilnik
Kitware Inc.



More information about the CMake mailing list