[cmake-developers] COMPILE_FEATURES, Mac and non-Apple clang versions
Stephen Kelly
steveire at gmail.com
Tue Jan 3 19:39:03 EST 2017
René J.V. Bertin wrote:
> On Tuesday January 03 2017 11:41:29 Robert Maynard wrote:
>
>> It is the responsibility of the project to understand what components
>> of CMake they require, and correctly specify a cmake_minimum required
>> that satisfies all those requirements. In this case to use compile
>> features you need a minimum of 3.0 which also automatically enables
>> policy 25.
>
> I agree with you in a way, but in reality it would be up to end users and
> packagers to feed back that information to an unknown number of projects
> and convince them why it's necessary to comply with the request. That's
> just not doable. It would be a lot easier if the policy could be set at a
> central location, in this case in the Qt module invoking the test that
> fails.
>
>
> And it's CMake's responsibility to generate useful error messages, and
> where possible provide a hint for the fix.
Usually CMake does. CMP0025 is a bit unique (perhaps to a fault) in that it
does not. Look at its docs.
Thanks,
Steve.
More information about the cmake-developers
mailing list