]> Creatis software - crea.git/blobdiff - cmake/CREAMacro_FindAndUseLibraries.cmake
Trap unconsistency
[crea.git] / cmake / CREAMacro_FindAndUseLibraries.cmake
index e678ebcf3ec4b1aca0d46c976e1a0c6e9868a52a..90f1ab0cc63e7843e9f445fd18cca52bfb6a8e6a 100644 (file)
@@ -166,7 +166,12 @@ IF(USE_GDCM)
 ENDIF(USE_GDCM)
 
 #-----------------------------------------------------------------------------
+
 IF(USE_GDCM2)
+  IF (USE_GDCM)
+    MESSAGE(ERROR "CANNOT USE BOTH gdcm AND gdcm2 !")
+  ENDIF (USE_GDCM)
+
     # Search GDCM2
     FIND_PACKAGE(GDCM REQUIRED)
     INCLUDE(${GDCM_USE_FILE})