Skip to content

Commit

Permalink
Merge pull request InsightSoftwareConsortium#4503 from thewtex/dcmtk-…
Browse files Browse the repository at this point in the history
…bump

ENH: Bump DCMTK to 2024-03-11 master
  • Loading branch information
thewtex authored Mar 15, 2024
2 parents 6c2fe38 + 1ed8ead commit 1d5663c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 18 deletions.
13 changes: 2 additions & 11 deletions Modules/ThirdParty/DCMTK/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -78,18 +78,8 @@ else(DCMTK_USE_ICU)
)
endif()

if(APPLE)
# Character set conversion creates linking errors on MacOS. We disable
# `iconv` which is likely going to be found on the system by DCMTK, and
# that is going to create linking errors.
list(APPEND
CHARSET_CONVERSION_ARGS
-DDCMTK_WITH_ICONV:BOOL=OFF
)
endif()

set(_ITKDCMTK_LIB_NAMES dcmdata dcmimage dcmimgle dcmjpeg dcmjpls
dcmnet dcmpstat dcmqrdb dcmsr dcmtls ijg12 ijg16 ijg8 oflog ofstd)
dcmnet dcmpstat dcmqrdb dcmsr dcmtls ijg12 ijg16 ijg8 oflog ofstd oficonv)
if(WIN32)
set(ITKDCMTK_LIBDEP_WIN iphlpapi ws2_32 netapi32 wsock32)
endif()
Expand Down Expand Up @@ -337,6 +327,7 @@ endforeach()
-DCMAKE_INSTALL_PREFIX:PATH=${CMAKE_INSTALL_PREFIX}
-DCMAKE_INSTALL_LIBDIR:PATH=${CMAKE_INSTALL_LIBDIR}
-DCMAKE_INSTALL_BINDIR:PATH=${CMAKE_INSTALL_BINDIR}
-DDCMTK_ENABLE_BUILTIN_OFICONV_DATA:BOOL=${DCMTK_ENABLE_BUILTIN_OFICONV_DATA}
${CHARSET_CONVERSION_ARGS}
DEPENDS ${JPEG_DEPENDENCY} ${PNG_DEPENDENCY} ${TIFF_DEPENDENCY} ${ICU_DEPENDENCY}
BUILD_BYPRODUCTS ${DCMTK_BYPRODUCTS}
Expand Down
11 changes: 4 additions & 7 deletions Modules/ThirdParty/DCMTK/DCMTKGitTag.cmake
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Set GIT tag here for use in multiple CMakeLists.txt
#
set(DCMTK_GIT_REPOSITORY "https://github.com/InsightSoftwareConsortium/DCMTK.git")
# 2020.02.14 patched
# 2024.03.11 patched
# Patch list:

#Francois Budin (1):
Expand All @@ -13,10 +13,7 @@ set(DCMTK_GIT_REPOSITORY "https://github.com/InsightSoftwareConsortium/DCMTK.git
#Jean-Christophe Fillion-Robin (1):
#COMP: Set 3rd party package CMake variables only if needed

#Matt McCormick (2):
#Support CMAKE_CROSSCOMPILING_EMULATOR
#Support the generation of arith.h with Emscription
#Matt McCormick (1):
#Support CMAKE_CROSSCOMPILING_EMULATOR # pushed upstream in https://github.com/DCMTK/dcmtk/pull/94



set(DCMTK_GIT_TAG "cba5794fb294ca7a473a70dd97fdee115922a348") # 20220117_DCMTK_PATCHES_FOR_ITK
set(DCMTK_GIT_TAG "bed2645624b30823189b1afa0d0feb8c8964847e") # 20240311_DCMTK_PATCHES_FOR_ITK
2 changes: 2 additions & 0 deletions Modules/ThirdParty/DCMTK/itk-module-init.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ if(ITK_USE_SYSTEM_DCMTK)
list(INSERT CMAKE_MODULE_PATH 0 "${CMAKE_CURRENT_LIST_DIR}/CMake")
find_package(DCMTK REQUIRED NO_MODULE)
else(ITK_USE_SYSTEM_DCMTK)
# Change default from OFF to ON for portability.
option(DCMTK_ENABLE_BUILTIN_OFICONV_DATA "Embed oficonv data files into oficonv library" ON)
# Copied and mofified from DCMTK/CMake/3rdparty.cmake
if(NOT DEFINED DCMTK_USE_ICU)
include(CheckCXXSourceCompiles)
Expand Down

0 comments on commit 1d5663c

Please sign in to comment.