Skip to content

Commit

Permalink
COMP: Move GDCM version check to cxx file
Browse files Browse the repository at this point in the history
Addresses warning about undefined GDCM_MAJOR_VERSION.
  • Loading branch information
blowekamp committed Nov 28, 2024
1 parent 81267ef commit cadefbf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 0 additions & 4 deletions Modules/IO/GDCM/include/itkGDCMImageIO.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,6 @@
#include <string>


#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
Expand Down
5 changes: 5 additions & 0 deletions Modules/IO/GDCM/src/itkGDCMImageIO.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,11 @@
#include <itkImageBase.h>
#include <sstream>


#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
{

Expand Down

0 comments on commit cadefbf

Please sign in to comment.