diff Resources/CMake/DcmtkConfiguration.cmake @ 1943:bc949ea71fe6

Fix of Debian bug #818512 ("FTBFS: Please install libdcmtk*-dev")
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 04 Apr 2016 13:17:08 +0200
parents 501769757bf9
children 01de36d949c3
line wrap: on
line diff
--- a/Resources/CMake/DcmtkConfiguration.cmake	Fri Mar 25 11:28:52 2016 +0100
+++ b/Resources/CMake/DcmtkConfiguration.cmake	Mon Apr 04 13:17:08 2016 +0200
@@ -201,16 +201,16 @@
   include(FindDCMTK)
   list(APPEND DCMTK_LIBRARIES "${tmp}")
 
-  include_directories(${DCMTK_INCLUDE_DIR})
+  include_directories(${DCMTK_INCLUDE_DIRS})
 
   add_definitions(
     -DHAVE_CONFIG_H=1
     )
 
-  if (EXISTS "${DCMTK_DIR}/config/cfunix.h")
-    set(DCMTK_CONFIGURATION_FILE "${DCMTK_DIR}/config/cfunix.h")
-  elseif (EXISTS "${DCMTK_DIR}/config/osconfig.h")  # This is for Arch Linux
-    set(DCMTK_CONFIGURATION_FILE "${DCMTK_DIR}/config/osconfig.h")
+  if (EXISTS "${DCMTK_config_INCLUDE_DIR}/cfunix.h")
+    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")
   else()
     message(FATAL_ERROR "Please install libdcmtk*-dev")
   endif()