Mercurial > hg > orthanc
changeset 1635:0844a4bcb0ad dcmtk-3.6.1
integration mainline->dcmtk
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 23 Sep 2015 09:59:12 +0200 |
parents | b7dfb048b2f3 (current diff) c095b0ddeea6 (diff) |
children | dfbde7c3fe19 |
files | Resources/CMake/DcmtkConfiguration.cmake |
diffstat | 1 files changed, 7 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- a/Resources/CMake/DcmtkConfiguration.cmake Wed Sep 23 09:55:23 2015 +0200 +++ b/Resources/CMake/DcmtkConfiguration.cmake Wed Sep 23 09:59:12 2015 +0200 @@ -15,9 +15,10 @@ if (STATIC_BUILD OR NOT USE_SYSTEM_DCMTK) SET(DCMTK_VERSION_NUMBER 361) + set(DCMTK_PACKAGE_VERSION "3.6.1") SET(DCMTK_SOURCES_DIR ${CMAKE_BINARY_DIR}/dcmtk-3.6.1_20150629) - SET(DCMTK_URL "http://www.montefiore.ulg.ac.be/~jodogne/Orthanc/ThirdPartyDownloads/dcmtk-3.6.1_20150629.tar.gz") - SET(DCMTK_MD5 "2faf73786fc638ae05fef0103cce0eea") + SET(DCMTK_URL "http://www.montefiore.ulg.ac.be/~jodogne/Orthanc/ThirdPartyDownloads/dcmtk-3.6.1_20150629.zip") + SET(DCMTK_MD5 "219ad631b82031806147e4abbfba4fa4") if (IS_DIRECTORY "${DCMTK_SOURCES_DIR}") set(FirstRun OFF) @@ -38,7 +39,7 @@ IF (CMAKE_CROSSCOMPILING) SET(C_CHAR_UNSIGNED 1 CACHE INTERNAL "Whether char is unsigned.") ENDIF() - SET(DCMTK_SOURCE_DIR ${CMAKE_BINARY_DIR}/dcmtk-3.6.1) + SET(DCMTK_SOURCE_DIR ${DCMTK_SOURCES_DIR}) include(${DCMTK_SOURCES_DIR}/CMake/CheckFunctionWithHeaderExists.cmake) include(${DCMTK_SOURCES_DIR}/CMake/GenerateDCMTKConfigure.cmake) @@ -55,9 +56,8 @@ set(HAVE_PROTOTYPE_GETSOCKNAME 1) endif() - set(DCMTK_PACKAGE_VERSION "3.6.1") set(DCMTK_PACKAGE_VERSION_SUFFIX "") - set(DCMTK_PACKAGE_VERSION_NUMBER 360) + set(DCMTK_PACKAGE_VERSION_NUMBER ${DCMTK_VERSION_NUMBER}) CONFIGURE_FILE( ${DCMTK_SOURCES_DIR}/CMake/osconfig.h.in @@ -128,13 +128,13 @@ #set_source_files_properties(${DCMTK_SOURCES} # PROPERTIES COMPILE_DEFINITIONS - # "PACKAGE_VERSION=\"3.6.1\";PACKAGE_VERSION_NUMBER=\"360\"") + # "PACKAGE_VERSION=\"3.6.1\";PACKAGE_VERSION_NUMBER=\"${DCMTK_VERSION_NUMBER}\"") # This fixes crashes related to the destruction of the DCMTK OFLogger # http://support.dcmtk.org/docs-snapshot/file_macros.html add_definitions( -DLOG4CPLUS_DISABLE_FATAL=1 - -DDCMTK_VERSION_NUMBER=360 + -DDCMTK_VERSION_NUMBER=${DCMTK_VERSION_NUMBER} ) include_directories(