[cmake-developers] module merge mania
Brad King
brad.king at kitware.com
Tue Sep 19 14:23:54 EDT 2006
Alexander Neundorf wrote:
> On Tuesday 19 September 2006 20:09, Brad King wrote:
>> Alexander Neundorf wrote:
>>> I could also build the macro so that you can give the language as
>>> parameter: check_struct_member(CXX stat st_time STAT_HAS_ST_TIME)
>> I like the parameter version since "struct" is valid in both C and C++.
>> Please make it give an error if the argument is not "C" or "CXX".
>
> Yes, but this would be the only macro with such a parameter...
> I could also simply have two versions:
>
> check_c_struct_member()
> check_c_struct_pointer_member()
> check_cxx_struct_member()
> check_cxx_struct_pointer_member()
Okay, let's go with these four versions for simplicity and consistency.
-Brad
More information about the cmake-developers
mailing list