[Insight-developers] Compile Time ITK version testing?

Karthik Krishnan karthik.krishnan at kitware.com
Tue Dec 11 09:34:24 EST 2007


On 12/11/07, Williams, Norman K <norman-k-williams at uiowa.edu> wrote:
>
> It turns out that my submission to the Insight Journal is failing on the
> IJ dashboard, because it depends on at least revision 3.0 of ITK.
>
> Is there a compile time check for the ITK version?


Yes. There are preprocessor defines defined defined in itkConfigure.h (in
your binary tree). This file is included by every ITK class.

#define ITK_VERSION_MAJOR 3
#define ITK_VERSION_MINOR 5
#define ITK_VERSION_PATCH 0
#define ITK_VERSION_STRING "3.5"

HTH
-- 
Karthik Krishnan
R&D Engineer,
Kitware Inc.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.itk.org/mailman/private/insight-developers/attachments/20071211/466d3a91/attachment.html


More information about the Insight-developers mailing list