[Insight-developers] Re: Recent include file reorg breaks backward compatibility

Brad King brad.king at kitware.com
Tue Oct 3 14:22:48 EDT 2006


Bill Lorensen wrote:
> Done. That works great! See, it's not always hard to maintain backward
> compatibility. Just a little more thinking.

Actually I didn't even try for compatibility.  Those libraries were
never intended for use by outside projects.  From
Insight/Utilities/itkThirdParty.cmake before my recent changes:

# The in-tree third-party libraries are not exported.  We only need
# the include directory inside the tree.  If using a third-party
# library from the system, though, make sure the system include
# directory is consistent inside and outside the tree.

As a result projects that needed the libraries used hacks to get to
them.  I wasn't aware of anyone doing this.  My implementation to export
the libraries for real (a new feature) breaks those hacks.

Fortunately restoring them is easy.

> I'll add includes for the other renamed includes.

Good idea.

Thanks,
-Brad


More information about the Insight-developers mailing list