[CMake] Re: General modernization facility

Brandon Van Every bvanevery at gmail.com
Tue Dec 18 20:11:14 EST 2007


On Dec 18, 2007 7:48 PM, Rodolfo Lima <rodolfo at rodsoft.org> wrote:
> Alexander Neundorf escreveu:
>
> > This is wrong. This would mean that the old buggy behaviour in the code would
> > have to stay in an if(version==2.4.7) block, and next to it the fixed block
> > for newer versions. This is not maintainable.
>
> Well, isn't it what is happening with SUBDIRS vs. ADD_SUBDIRECTORY? How
> this problem is being handled now?

They're non-conflicting commands.  The reason there's a problem is
because they do very similar things but have different behavior.
Users don't know any better so they do stuff with SUBDIRS.  CMake
2.6.0 will list SUBDIRS in the depreciated section of the
documentation.


Cheers,
Brandon Van Every


More information about the CMake mailing list