Skip to content

Commit

Permalink
ENH: Enable DCMTK_ENABLE_BUILTIN_OFICONV_DATA by default
Browse files Browse the repository at this point in the history
As suggested by Michael Onken

> By default, the oficonv library makes use of character set conversion tables that are loaded from files during runtime. In order to pre-compile those tables into the oficonv library, you can set the CMake option DCMTK_ENABLE_BUILTIN_OFICONV_DATA (ON).
  • Loading branch information
thewtex committed Mar 13, 2024
1 parent db9c048 commit 1ed8ead
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions Modules/ThirdParty/DCMTK/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -327,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
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 1ed8ead

Please sign in to comment.