From cadefbff0fe5f012ed10ac8c6f9a61c56c66ec73 Mon Sep 17 00:00:00 2001 From: Bradley Lowekamp Date: Wed, 27 Nov 2024 19:36:45 -0500 Subject: [PATCH] COMP: Move GDCM version check to cxx file Addresses warning about undefined GDCM_MAJOR_VERSION. --- Modules/IO/GDCM/include/itkGDCMImageIO.h | 4 ---- Modules/IO/GDCM/src/itkGDCMImageIO.cxx | 5 +++++ 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/Modules/IO/GDCM/include/itkGDCMImageIO.h b/Modules/IO/GDCM/include/itkGDCMImageIO.h index dedc35815db..3893dce8295 100644 --- a/Modules/IO/GDCM/include/itkGDCMImageIO.h +++ b/Modules/IO/GDCM/include/itkGDCMImageIO.h @@ -35,10 +35,6 @@ #include -#if GDCM_MAJOR_VERSION == 2 && GDCM_MINOR_VERSION == 0 && GDCM_BUILD_VERSION <= 12 -# error "GDCM versions less or equeal to 2.0.12 are no longer supported" -#endif - namespace itk { /** \class GDCMImageIOEnums diff --git a/Modules/IO/GDCM/src/itkGDCMImageIO.cxx b/Modules/IO/GDCM/src/itkGDCMImageIO.cxx index 62e1537ff3c..637d0ffdeeb 100644 --- a/Modules/IO/GDCM/src/itkGDCMImageIO.cxx +++ b/Modules/IO/GDCM/src/itkGDCMImageIO.cxx @@ -60,6 +60,11 @@ #include #include + +#if GDCM_MAJOR_VERSION == 2 && GDCM_MINOR_VERSION == 0 && GDCM_BUILD_VERSION <= 12 +# error "GDCM versions less or equeal to 2.0.12 are no longer supported" +#endif + namespace itk {