[Insight-developers] Re: Include files with the same name,
ITK naming conventions.
Hans Johnson
hans-johnson at uiowa.edu
Wed Mar 29 15:37:28 EST 2006
Karthik,
I agree 100%. With the nifti project, I am trying to keep the
sourceforge and the ITK trees in sync. Now that nifti has stabalized a
bit, I think that this change could be made. I'll work on it next week.
Hans
Karthik Krishnan wrote:
> Hi Hans and Developers,
>
> I found this include file in ITK/Utilities/nifti/znzlib/config.h
>
> There are too many libraries that use a name this common, for its
> configuration (such as Curl).
>
> 1. I would suggest (if it does not break any backword compatibility or
> at least in future) to prefix such names with the library name,
> tiff/tiff_config.h or itkjpeg/jconfig.h
>
> 2. Even better, don't add the entire include tree to
> itkIncludeDirectories.cmake. For instance gdcm is great, cause you
> always say:
> #include "gdcm/config.h".
> This ensures that if you have a config.h installed by some other
> library in /usr/include/, it does not pick the wrong one.
>
> I ran into this problem building a project that uses both ITK and curl
> as external libraries.
>
> Just a convention, but it helps a lot.
>
> Thanks
> -karthik
>
More information about the Insight-developers
mailing list