]> Creatis software - crea.git/commitdiff
ITK vs GDCM (avoid cmake break)
authorjean-pierre roux <jean-pierre.roux@creatis.insa-lyon.fr>
Wed, 24 Nov 2010 14:28:24 +0000 (14:28 +0000)
committerjean-pierre roux <jean-pierre.roux@creatis.insa-lyon.fr>
Wed, 24 Nov 2010 14:28:24 +0000 (14:28 +0000)
(Shouldn't be user pb!)

cmake/CREAMacro_FindAndUseLibraries.cmake

index 90f1ab0cc63e7843e9f445fd18cca52bfb6a8e6a..2d030abdee2c06b3a6e706d8935b1998ed8ef6fc 100644 (file)
@@ -172,6 +172,7 @@ IF(USE_GDCM2)
     MESSAGE(ERROR "CANNOT USE BOTH gdcm AND gdcm2 !")
   ENDIF (USE_GDCM)
 
+  IF(NOT USE_ITK) # JPR : ITK vs GDCM (avoid cmake break)
     # Search GDCM2
     FIND_PACKAGE(GDCM REQUIRED)
     INCLUDE(${GDCM_USE_FILE})
@@ -216,7 +217,8 @@ IF(USE_GDCM2)
                
        ENDIF(USE_VTK)
       ENDIF(USE_GDCM_VTK)
-     
+  ENDIF(NOT USE_ITK) # JPR : ITK vs GDCM (avoid cmake break)
+
 ENDIF(USE_GDCM2)
 
 #-----------------------------------------------------------------------------