[CMake] how to add 2 numbers with cmake ?

Gaetan Lehmann gaetan.lehmann at jouy.inra.fr
Fri Jan 20 08:40:55 EST 2006


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



-- 
Gaëtan Lehmann
Biologie du Développement et de la Reproduction
INRA de Jouy-en-Josas (France)
tel: +33 1 34 65 29 66    fax: 01 34 65 29 09
http://voxel.jouy.inra.fr


More information about the CMake mailing list