[Cmake] SIZEOF Feature added

Andy Cedilnik Andy.Cedilnik at kitware.com
Mon Jan 7 14:18:23 EST 2002


Hello!

Just wanted to let you know that I added a nice feature to autoconf
part of CMake. It uses autoconf mechanism to get byte size of
some primitive data types such as char, short, int, long, float,
double and void*.  The results are stored in CMake variables:

CMAKE_SIZEOF_INT
CMAKE_SIZEOF_SHORT
....

Since Windows build systems do not use autoconf, I hardcoded
these values in their files. If somebody is using Windows
development tools on something with different sizes of these
types, she might add support for that platform in the
appropriate files. Also, when Ia64 platform becomes available,
this will have to be changed.

The common solution would be some equivalent to AC_RUN
and AC_TRY.

				Andy




More information about the CMake mailing list