[CMake] General modernization facility

Brandon Van Every bvanevery at gmail.com
Tue Dec 18 13:39:45 EST 2007


On Dec 18, 2007 1:06 PM, James Bigler <bigler at cs.utah.edu> wrote:
> Brandon Van Every wrote:
> >
> > include(Modern) would turn on improvements that are
> > clearly desirable but break backwards compatibility.
> >
> > Heh, I wonder if in some instances the opposite would be needed,
> > include(Ancient) !  :-)  Something that either suppresses appeals to
> > modernity, or warns vehemently against them.
>
> Perhaps this could be enforced by CMAKE_BACKWARDS_COMPATIBILITY variable.
> If you supply a sufficiently modern version of cmake, then deprecated things will turn on
> warnings/errors.  If you set the version lower, then features that were not deprecated at
> that version wouldn't issue warnings.

How about include(ForwardsCompatibility).  That would make the intent
really clear.


Cheers,
Brandon Van Every


More information about the CMake mailing list