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

Brad King brad.king at kitware.com
Fri Oct 18 08:07:44 EDT 2013


On 10/18/2013 06:52 AM, Daniele E. Domenichelli wrote:
> I'm trying to fix CheckTypeSize to support C++ in the same way I fixed
> CheckStructHasMember.

Thanks!

> I pushed the topic CheckTypeSize_CXX (including unit tests), can you
> review it? The only thing I'm not convinced about is that I used
> CMakeParseArguments, since CheckTypeSize already supports an extra
> argument (BUILTIN_TYPES_ONLY) and manually parsing the arguments will be
> a bit more complicated than for CheckStructHasMember. Do you think I
> should parse it instead?

If you want to parse it yourself you can follow the state machine
convention used in Modules/FortranCInterface and in the C++ implementation
of many commands (look for "doing").  Is there a drawback to using
CMakeParseArguments?

-Brad



More information about the cmake-developers mailing list