]> Creatis software - clitk.git/blobdiff - cmake/dependencies.cmake
Add Option to use external GDCM
[clitk.git] / cmake / dependencies.cmake
index 868a2b6831078691a9e13dd4cb6e7c025b8e9274..25b613bf4a069a8a9c6e015184486a366700cf27 100644 (file)
@@ -60,11 +60,11 @@ endif()
 
 
 #=========================================================
-### Check if ITK was compiled with SYSTEM_GDCM = ON
+### Check if ITK was compiled with SYSTEM_GDCM = ON (Not possible anymore with ITK 4.13)
+### Add option to activate external GDCM in clitk
 set(CLITK_USE_SYSTEM_GDCM FALSE)
-# ITK4 creates a target for each gdcm library when it compiles GDCM
-get_target_property(GDCMDICTTARG gdcmDICT TYPE )
-if(NOT GDCMDICTTARG)
+if(CLITK_EXTERNAL_GDCM)
+  message("Be sure to use external GDCM with ITK")
   set(CLITK_USE_SYSTEM_GDCM TRUE)
 endif()