]> Creatis software - clitk.git/blobdiff - cmake/dependencies.cmake
Remove ITK3 and ITK4.2 tests and dependencies
[clitk.git] / cmake / dependencies.cmake
index 62a6a1503f4d0704db0810de062d85d12cd333b2..a871fecd0d19523b2fa28823856adcf5637c32ed 100644 (file)
@@ -59,15 +59,10 @@ endif()
 #=========================================================
 ### Check if ITK was compiled with SYSTEM_GDCM = ON
 set(CLITK_USE_SYSTEM_GDCM FALSE)
-if(ITK_VERSION_MAJOR LESS "4")
-  if(ITK_USE_SYSTEM_GDCM)
-    set(CLITK_USE_SYSTEM_GDCM TRUE)
-  endif(ITK_USE_SYSTEM_GDCM)
-else()
-  # ITK4 creates a target for each gdcm library when it compiles GDCM
-  get_target_property(GDCMDICTTARG gdcmDICT TYPE )
-  if(NOT GDCMDICTTARG)
-    set(CLITK_USE_SYSTEM_GDCM TRUE)
-  endif()
+# ITK4 creates a target for each gdcm library when it compiles GDCM
+get_target_property(GDCMDICTTARG gdcmDICT TYPE )
+if(NOT GDCMDICTTARG)
+  set(CLITK_USE_SYSTEM_GDCM TRUE)
 endif()
 
+