[cmake-developers] CheckTypeSize: Add support for C++

Brad King brad.king at kitware.com
Mon Oct 21 08:50:55 EDT 2013


On 10/21/2013 05:14 AM, Daniele E. Domenichelli wrote:
> This will cause
> 
>   check_type_size(int SIZEOF_INT LANGUAGE BUILTIN_TYPES_ONLY)
> 
> to be accepted by this state

Yes, but many other places already do the same thing.

> The state will change from doing=LANGUAGE to doing=unset without
> setting the language, therefore C will be used and no error/warning is
> shown to the user.

When LANGUAGE is encountered, set the language to empty so that it
will be an error if the language does not get set.

-Brad



More information about the cmake-developers mailing list