On 08/30/2013 08:02 AM, Stephen Kelly wrote:
> It turns out that in order to do this, the compiler features would 
> have to be listed independently of Modules/Compiler/${ID}.cmake. Otherwise I 
> wouldn't be able to check the MSVC features while using GNU. 
> 
> Maybe they should be listed in Modules/CompilerFeatures/${ID}-${LANG}.cmake 
> instead?

Why do you need to check features of a compiler not currently enabled?
Without being enabled we don't even know what version of the other
compiler to check.

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?

>> We also need a plan to phase out support for ancient versions in the
>> future.
> 
> Any ideas on how to do that? 

Perhaps we can document for each value of CMAKE_MINIMUM_VERSION_REQUIRED
the oldest VERSION value supported.  That way it is up to the project
author to update VERSION and port code when bumping the minimum required
version of CMake.  It will allow us to move forward but give projects
a long grace period.

-Brad
--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers

Reply via email to