]> Creatis software - crea.git/commitdiff
Trap unconsistency
authorjean-pierre roux <jean-pierre.roux@creatis.insa-lyon.fr>
Mon, 15 Nov 2010 15:25:38 +0000 (15:25 +0000)
committerjean-pierre roux <jean-pierre.roux@creatis.insa-lyon.fr>
Mon, 15 Nov 2010 15:25:38 +0000 (15:25 +0000)
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})