]> Creatis software - clitk.git/commitdiff
Handling SYSTEM GDCM build and install trees (correction)
authorRomulo Pinho <romulo.pinho@lyon.unicancer.fr>
Thu, 15 Nov 2012 09:03:49 +0000 (10:03 +0100)
committerRomulo Pinho <romulo.pinho@lyon.unicancer.fr>
Thu, 15 Nov 2012 09:03:49 +0000 (10:03 +0100)
common/CMakeLists.txt

index 4a593847354570f95a7efb3dc9442b7c83061065..a6edaf4d1349be8ad1c9017652bc0ec0eb16194d 100644 (file)
@@ -63,13 +63,11 @@ IF(ITK_VERSION_MAJOR LESS "4")
     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)