[cmake-developers] Compiler features/extensions remaining/future issues

Stephen Kelly steveire at gmail.com
Sun Jun 15 16:24:16 EDT 2014


Brad King wrote:

> On 06/13/2014 05:19 AM, Stephen Kelly wrote:
>> 11) WriteCompilerDetectionHeader vs GenerateExportHeader
> 
> IMO these two modules are solving orthogonal problems and should not
> be mixed.

I'm not sure I agree.

GenerateExportHeader needs to know about deprecation in order to generate 
FOO_EXPORT_DEPRECATED and similar macros. So, they're not fully orthogonal.

>> 12) Platform-specific defines
> 
> Plenty of libraries already provide things like this.  Not everyone
> agrees what "UNIX" or even "Linux" means.  I was hesitant to accept
> WriteCompilerDetectionHeader in the first place because I never
> wanted to get in the business of providing a C++ SDK.  It is
> reasonable to re-use all the C++ compiler version and feature
> info we already have, but I don't think we should provide more.

Sounds good. Anyone wanting more can be pointed to boost::predef.

Thanks,

Steve.





More information about the cmake-developers mailing list