[cmake-developers] Could a cmake_maximum_required() work?

Stephen Kelly steveire at gmail.com
Wed Apr 25 13:55:59 EDT 2012


Hi there,

On the KDE Frameworks mailing list I had an idea for a 
cmake_maximum_required(), which would be symmetric with 
cmake_minimum_required(). 

http://thread.gmane.org/gmane.comp.kde.devel.frameworks/517/focus=532

The idea is that if you use cmake_maximum_required(2.8.8) and attempt to use 
a feature or API introduced in 2.8.9, CMake would report an error.

If done for historical features (which is a separate issue to whether the 
feature is introduced), it would essentially be a codification of:

http://www.cmake.org/Wiki/CMake_Version_Compatibility_Matrix

However, while the patch to introduce the feature would likely be very small 
(the variable just needs to be stored), the effort would be in the 
maintenance. 

Reviewing incoming feature patches for 'guarded' feature use would be 
something David and Brad would need to add to their check-list while 
reviewing, so essentially, that is who will end up doing most of the work 
for this feature.

Any thoughts on this?

Thanks,

Steve.





More information about the cmake-developers mailing list