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 Apr 22, 2024
1 parent fb5b2f0 commit 1e00c48
Show file tree
Hide file tree
Showing 2 changed files with 4 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 @@ -342,6 +342,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}
-DCMAKE_CXX_FLAGS:STRING=${DCMTK_CXX_FLAGS}
-DDCMTK_WITH_THREADS:BOOL=${DCMTK_WITH_THREADS}
${CHARSET_CONVERSION_ARGS}
Expand Down
3 changes: 3 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,9 @@ 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 1e00c48

Please sign in to comment.