[Insight-developers] ITKModular: include file regression
Bill Lorensen
bill.lorensen at gmail.com
Mon Apr 4 13:00:55 EDT 2011
I'm just saying it is a regression. I don't see how someone would know our
intentions since it worked. It is no big problem. I just think we should
document it. I'll remove the #if and just use the preferred usage.
Bill
On Mon, Apr 4, 2011 at 12:56 PM, Brad King <brad.king at kitware.com> wrote:
> On 04/04/2011 12:42 PM, Bill Lorensen wrote:
> > I'm updating Slicer4 to work with ITK Modular.
> >
> > This include fails:
> > #include "vxl/vcl/vcl_complex.h"
> >
> > I had to change it to:
> > #include "vcl_complex.h"
> >
> > Which means I need this code in Slicer4:
> > #if ITK_VERSION_MAJOR < 4
> > #include "vxl/vcl/vcl_complex.h"
> > #else
> > #include "vcl_complex.h"
> > #endif
> >
> >
> > I did not see a migration doc for this. Was this done purposely?
>
> AFAIK we never intended that style of inclusion. Just plain
>
> #include "vcl_complex.h"
>
> should have always worked if one included ${ITK_USE_FILE} in CMake code
> as documented.
>
> We can't possibly anticipate every possible way that a header used to
> be include-able just because of the way the directory structure happened
> to be arranged. One could have done
>
> #include "../Common/itkMacro.h"
>
> before and it would have worked. Now it won't.
>
> -Brad
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/mailman/private/insight-developers/attachments/20110404/3c54dc1c/attachment.htm>
More information about the Insight-developers
mailing list