comparison 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
comparison
equal deleted inserted replaced
2286:72aef993b510 2287:9f3414878c02
268 268
269 if (EXISTS "${DCMTK_config_INCLUDE_DIR}/cfunix.h") 269 if (EXISTS "${DCMTK_config_INCLUDE_DIR}/cfunix.h")
270 set(DCMTK_CONFIGURATION_FILE "${DCMTK_config_INCLUDE_DIR}/cfunix.h") 270 set(DCMTK_CONFIGURATION_FILE "${DCMTK_config_INCLUDE_DIR}/cfunix.h")
271 elseif (EXISTS "${DCMTK_config_INCLUDE_DIR}/osconfig.h") # This is for Arch Linux 271 elseif (EXISTS "${DCMTK_config_INCLUDE_DIR}/osconfig.h") # This is for Arch Linux
272 set(DCMTK_CONFIGURATION_FILE "${DCMTK_config_INCLUDE_DIR}/osconfig.h") 272 set(DCMTK_CONFIGURATION_FILE "${DCMTK_config_INCLUDE_DIR}/osconfig.h")
273 elseif (EXISTS "${DCMTK_INCLUDE_DIRS}/dcmtk/config/osconfig.h") # This is for Debian Buster
274 set(DCMTK_CONFIGURATION_FILE "${DCMTK_INCLUDE_DIRS}/dcmtk/config/osconfig.h")
273 else() 275 else()
274 message(FATAL_ERROR "Please install libdcmtk*-dev") 276 message(FATAL_ERROR "Please install libdcmtk*-dev")
275 endif() 277 endif()
276 278
279 message("DCMTK configuration file: ${DCMTK_CONFIGURATION_FILE}")
280
277 # Autodetection of the version of DCMTK 281 # Autodetection of the version of DCMTK
278 file(STRINGS 282 file(STRINGS
279 "${DCMTK_CONFIGURATION_FILE}" 283 "${DCMTK_CONFIGURATION_FILE}"
280 DCMTK_VERSION_NUMBER1 REGEX 284 DCMTK_VERSION_NUMBER1 REGEX
281 ".*PACKAGE_VERSION .*") 285 ".*PACKAGE_VERSION .*")