[cmake-developers] c++ feature detection and usage requirements
Brad King
brad.king at kitware.com
Fri Aug 30 08:20:30 EDT 2013
On 08/30/2013 08:15 AM, Stephen Kelly wrote:
> However, thinking about it again, I think you're right that that is not
> necessary.
Okay, it can always be factored out into separate files later anyway.
>> I thought the idea was to specify in target_compiler_features the
>> features needed so they would be published in the target interface.
>> Then whatever compiler is used can have its feature set tested against
>> the requirements. This would work both in-project and in consumers, no?
>
> Yes, I went on something of a tangent here.
BTW, I think a better name may be "language features" rather than
"compiler features" because we are declaring features of language
versions and variants, not of the compilers. It is only in the
implementation that we need to deal with compiler support for the
features.
-Brad
More information about the cmake-developers
mailing list