[cmake-developers] CheckStructHasMember does not support C++ only structs
Brad King
brad.king at kitware.com
Fri Oct 4 08:34:54 EDT 2013
On 10/04/2013 05:46 AM, Daniele E. Domenichelli wrote:
> This is the test that is failing, according to my knowledge of C it
> should build, even with very old compilers...
The problem is the empty struct:
struct struct_with_non_existent_members {
};
Some C compilers reject that. You'll have to add a dummy member.
-Brad
More information about the cmake-developers
mailing list