SET(CLITK_USE_SYSTEM_GDCM TRUE)
ENDIF(ITK_USE_SYSTEM_GDCM)
ELSE(ITK_VERSION_MAJOR LESS "4")
- SET(GDCM_INCLUDE ".*include/gdcm-.*")
- #SET(GDCM_INCLUDE ".*/Source/Common")
- IF(ITKGDCM_INCLUDE_DIRS MATCHES ${GDCM_INCLUDE})
+ SET(GDCM_INCLUDE_INSTALL ".*include/gdcm-.*")
+ SET(GDCM_INCLUDE_BUILD ".*/Source/MediaStorageAndFileFormat")
+ IF(ITKGDCM_INCLUDE_DIRS MATCHES ${GDCM_INCLUDE_BUILD} OR ITKGDCM_INCLUDE_DIRS MATCHES ${GDCM_INCLUDE_INSTALL})
SET(CLITK_USE_SYSTEM_GDCM TRUE)
- ELSE(ITKGDCM_INCLUDE_DIRS MATCHES ${GDCM_INCLUDE})
- MESSAGE("NOT USING SYSTEM_GDCM!!!!!!!")
- ENDIF(ITKGDCM_INCLUDE_DIRS MATCHES ${GDCM_INCLUDE})
+ ENDIF(ITKGDCM_INCLUDE_DIRS MATCHES ${GDCM_INCLUDE_BUILD} OR ITKGDCM_INCLUDE_DIRS MATCHES ${GDCM_INCLUDE_INSTALL})
ENDIF(ITK_VERSION_MAJOR LESS "4")
IF(CLITK_USE_SYSTEM_GDCM)