[Insight-developers] Conditional inclusion of headers in HeaderTests

Matt McCormick matt.mccormick at kitware.com
Wed Aug 31 11:05:02 EDT 2011


On Wed, Aug 31, 2011 at 11:02 AM, Johnson, Hans J
<hans-johnson at uiowa.edu> wrote:
> Bill,
> I need a variant of my approach to avoid defining that variable 2 times.
>  I am going to add a compile time switch
> set_target_properties( ${_test_name} PROPERTIES COMPILE_FLAGS
> -DITK_SILENT_HEADER_ERRORS=1 )
> And then protect the issuing of the compiler error with that additional
> flag.


Is that for fixing the HeaderTests?  They can be fixed this way:

diff --git a/Utilities/Maintenance/BuildHeaderTest.py
b/Utilities/Maintenance/BuildHeaderTest.py
index f8d781d..d558053 100755
--- a/Utilities/Maintenance/BuildHeaderTest.py
+++ b/Utilities/Maintenance/BuildHeaderTest.py
@@ -31,10 +31,13 @@ for syntax and missing #include's.
 # Headers to not test because of dependecy issues, etc.
 BANNED_HEADERS = set(('itkExceptionObject.h', # There is a
pre-processor check so people use itkMacro.h instead.
     'itkMINC2ImageIO.h', # In case minc2.h is not available.
+    'itkExponentialDeformationFieldImageFilter.h', # deprecated
     'itkFFTWForwardFFTImageFilter.h',
     'itkFFTWInverseFFTImageFilter.h',
     'itkFFTWComplexToComplexImageFilter.h',
     'itkFFTWCommon.h',
+    'itkInverseDeformationFieldImageFilter.h',     # deprecated
+    'itkIterativeInverseDeformationFieldImageFilter.h',  # deprecated
     'itkLevelSetEquationChanAndVeseInternalTerm.h',   # JIRA 2645 FIXME
     'itkLevelSetEquationCurvatureTerm.h',             # JIRA 2645 FIXME
     'itkLevelSetEquationLaplacianTerm.h',             # JIRA 2645 FIXME


More information about the Insight-developers mailing list