changeset 1769:cb466194f22c

fail if no DICOM dictionary
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 10 Nov 2015 16:37:01 +0100
parents 70f544f9c38f
children 6473e4e22d44
files Resources/CMake/DcmtkConfiguration.cmake
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/Resources/CMake/DcmtkConfiguration.cmake	Mon Nov 09 17:39:42 2015 +0100
+++ b/Resources/CMake/DcmtkConfiguration.cmake	Tue Nov 10 16:37:01 2015 +0100
@@ -3,9 +3,14 @@
   find_path(DCMTK_DICTIONARY_DIR_AUTO dicom.dic
     /usr/share/dcmtk
     /usr/share/libdcmtk2
+    /usr/share/libdcmtk4
     /usr/local/share/dcmtk
     )
 
+ if (${DCMTK_DICTIONARY_DIR_AUTO} MATCHES "DCMTK_DICTIONARY_DIR_AUTO-NOTFOUND")
+   message(FATAL_ERROR "Cannot locate the DICOM dictionary on this system")
+ endif()
+
   message("Autodetected path to the DICOM dictionaries: ${DCMTK_DICTIONARY_DIR_AUTO}")
   add_definitions(-DDCMTK_DICTIONARY_DIR="${DCMTK_DICTIONARY_DIR_AUTO}")
 else()