# HG changeset patch # User Sebastien Jodogne # Date 1523336262 -7200 # Node ID ce2dfba9417c8bf749670924895d8412a18694e8 # Parent 6db878376018a99b6b4078e6d2293e790d8b824a fix build with dcmtk 3.6.0 diff -r 6db878376018 -r ce2dfba9417c Core/DicomParsing/FromDcmtkBridge.cpp --- a/Core/DicomParsing/FromDcmtkBridge.cpp Mon Apr 09 17:59:16 2018 +0200 +++ b/Core/DicomParsing/FromDcmtkBridge.cpp Tue Apr 10 06:57:42 2018 +0200 @@ -2182,7 +2182,7 @@ case ITagVisitor::Action_Replace: { std::string s = Toolbox::ConvertFromUtf8(newValue, encoding); - if (element.putString(s.c_str(), s.size()) != EC_Normal) + if (element.putString(s.c_str()) != EC_Normal) { LOG(ERROR) << "Cannot replace value of tag: " << tag.Format(); throw OrthancException(ErrorCode_InternalError); diff -r 6db878376018 -r ce2dfba9417c Resources/CMake/DcmtkConfiguration.cmake --- a/Resources/CMake/DcmtkConfiguration.cmake Mon Apr 09 17:59:16 2018 +0200 +++ b/Resources/CMake/DcmtkConfiguration.cmake Tue Apr 10 06:57:42 2018 +0200 @@ -293,23 +293,17 @@ endif() - if (USE_DCMTK_360) - # Removing this file is required with DCMTK 3.6.0 - list(REMOVE_ITEM DCMTK_SOURCES - - ) - else() - if (ORTHANC_SANDBOXED) - configure_file( - ${ORTHANC_ROOT}/Resources/WebAssembly/dcdict.h - ${DCMTK_SOURCES_DIR}/dcmdata/include/dcmtk/dcmdata/dcdict.h - COPYONLY) - - configure_file( - ${ORTHANC_ROOT}/Resources/WebAssembly/dcdict.cc - ${DCMTK_SOURCES_DIR}/dcmdata/libsrc/dcdict.cc - COPYONLY) - endif() + if (NOT USE_DCMTK_360 AND + ORTHANC_SANDBOXED) + configure_file( + ${ORTHANC_ROOT}/Resources/WebAssembly/dcdict.h + ${DCMTK_SOURCES_DIR}/dcmdata/include/dcmtk/dcmdata/dcdict.h + COPYONLY) + + configure_file( + ${ORTHANC_ROOT}/Resources/WebAssembly/dcdict.cc + ${DCMTK_SOURCES_DIR}/dcmdata/libsrc/dcdict.cc + COPYONLY) endif()