diff Resources/CMake/DcmtkConfiguration.cmake @ 2287:9f3414878c02

Fix Debian #865606 (orthanc FTBFS with libdcmtk-dev 3.6.1~20170228-2)
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 23 Jun 2017 10:22:20 +0200
parents 6ac6193a7935
children c6772af6dea3
line wrap: on
line diff
--- a/Resources/CMake/DcmtkConfiguration.cmake	Wed Jun 21 09:24:55 2017 +0000
+++ b/Resources/CMake/DcmtkConfiguration.cmake	Fri Jun 23 10:22:20 2017 +0200
@@ -270,10 +270,14 @@
     set(DCMTK_CONFIGURATION_FILE "${DCMTK_config_INCLUDE_DIR}/cfunix.h")
   elseif (EXISTS "${DCMTK_config_INCLUDE_DIR}/osconfig.h")  # This is for Arch Linux
     set(DCMTK_CONFIGURATION_FILE "${DCMTK_config_INCLUDE_DIR}/osconfig.h")
+  elseif (EXISTS "${DCMTK_INCLUDE_DIRS}/dcmtk/config/osconfig.h")  # This is for Debian Buster
+    set(DCMTK_CONFIGURATION_FILE "${DCMTK_INCLUDE_DIRS}/dcmtk/config/osconfig.h")
   else()
     message(FATAL_ERROR "Please install libdcmtk*-dev")
   endif()
 
+  message("DCMTK configuration file: ${DCMTK_CONFIGURATION_FILE}")
+  
   # Autodetection of the version of DCMTK
   file(STRINGS
     "${DCMTK_CONFIGURATION_FILE}"