[Insight-developers] incorporating commit info

Brad King brad.king at kitware.com
Thu Apr 26 08:08:58 EDT 2012


On 4/25/2012 4:20 PM, Bradley Lowekamp wrote:
> Please be VERY careful where you put such information. The
> itkVersion.h file is included in itkMacro.h which is included
> in just about every other itk header. If you change branches we
> do not want to have to rebuild all of ITK, and have our ccaches
> miss all the time.
>
> Consider keeping the information only available at run time by
> encapsulating it in a cxx file, or a separate header filer,
> that is not included by each bit of ITK.

I did this recently in VTK:

   http://vtk.org/gitweb?p=VTK.git;a=commitdiff;h=ebf6777d

and actually removed the version from the top-level header
altogether.  The equivalent in ITK would be to remove the
inclusion of itkVersion.h from itkMacro.h (among other
changes).

-Brad K


More information about the Insight-developers mailing list