# HG changeset patch # User Sebastien Jodogne # Date 1792585512 -7200 # Node ID 77903d318a6a81f05d0aa5adb53ea7068ee2bc26 # Parent 7d2c56c86d4bdb672a3059557c71787628cdda80 fix msvc build diff -r 7d2c56c86d4b -r 77903d318a6a Resources/CMake/GdcmConfiguration.cmake --- a/Resources/CMake/GdcmConfiguration.cmake Mon Aug 10 10:23:31 2026 +0200 +++ b/Resources/CMake/GdcmConfiguration.cmake Wed Oct 21 14:25:12 2026 +0200 @@ -50,8 +50,13 @@ elseif (MSVC) # In the case of "USE_LEGACY_GDCM", there is a mismatch between # the CRT that is used by the GDCM project ("/MT") and by the - # Orthanc plugin ("/MD"). We clarify by forcing to "/MD". - set(AdditionalCFlags "/MD") + # Orthanc plugin ("/MD"). We clarify by forcing to "/MT". + # + # 2026-10-21: We switched from "/MD" to "/MT", as a consequence of + # the following changeset in the Orthanc Framework that will be + # part of Orthanc 1.13.1: + # https://orthanc.uclouvain.be/hg/orthanc/rev/0dd4240ea372 + set(AdditionalCFlags "/MT") set(AdditionalCxxFlags ${AdditionalCFlags}) endif()