comparison 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
comparison
equal deleted inserted replaced
1942:cc9901a98099 1943:bc949ea71fe6
199 # command-line, which is necessary for Ubuntu/Debian packages 199 # command-line, which is necessary for Ubuntu/Debian packages
200 set(tmp "${DCMTK_LIBRARIES}") 200 set(tmp "${DCMTK_LIBRARIES}")
201 include(FindDCMTK) 201 include(FindDCMTK)
202 list(APPEND DCMTK_LIBRARIES "${tmp}") 202 list(APPEND DCMTK_LIBRARIES "${tmp}")
203 203
204 include_directories(${DCMTK_INCLUDE_DIR}) 204 include_directories(${DCMTK_INCLUDE_DIRS})
205 205
206 add_definitions( 206 add_definitions(
207 -DHAVE_CONFIG_H=1 207 -DHAVE_CONFIG_H=1
208 ) 208 )
209 209
210 if (EXISTS "${DCMTK_DIR}/config/cfunix.h") 210 if (EXISTS "${DCMTK_config_INCLUDE_DIR}/cfunix.h")
211 set(DCMTK_CONFIGURATION_FILE "${DCMTK_DIR}/config/cfunix.h") 211 set(DCMTK_CONFIGURATION_FILE "${DCMTK_config_INCLUDE_DIR}/cfunix.h")
212 elseif (EXISTS "${DCMTK_DIR}/config/osconfig.h") # This is for Arch Linux 212 elseif (EXISTS "${DCMTK_config_INCLUDE_DIR}/osconfig.h") # This is for Arch Linux
213 set(DCMTK_CONFIGURATION_FILE "${DCMTK_DIR}/config/osconfig.h") 213 set(DCMTK_CONFIGURATION_FILE "${DCMTK_config_INCLUDE_DIR}/osconfig.h")
214 else() 214 else()
215 message(FATAL_ERROR "Please install libdcmtk*-dev") 215 message(FATAL_ERROR "Please install libdcmtk*-dev")
216 endif() 216 endif()
217 217
218 # Autodetection of the version of DCMTK 218 # Autodetection of the version of DCMTK