# HG changeset patch # User Sebastien Jodogne # Date 1756894026 -7200 # Node ID 84c290aea0857908f19f2173b0e867c8cb0de8da # Parent 1973bfe929ea02e6400bf93ce642ba70386519e5 trying to explicitly force the CRT diff -r 1973bfe929ea -r 84c290aea085 Resources/CMake/GdcmConfiguration.cmake --- a/Resources/CMake/GdcmConfiguration.cmake Wed Sep 03 11:57:22 2025 +0200 +++ b/Resources/CMake/GdcmConfiguration.cmake Wed Sep 03 12:07:06 2025 +0200 @@ -48,12 +48,11 @@ set(AdditionalCFlags "-Doff64_t=off_t") set(AdditionalCxxFlags ${AdditionalCFlags}) elseif (MSVC) - if (USE_LEGACY_GDCM) - # In this case, there is a mismatch between the CRT that is used - # by the GDCM project ("/MT") and by the Orthanc plugin ("/MD") - set(AdditionalCFlags "/MD") - set(AdditionalCxxFlags ${AdditionalCFlags}) - endif() + # 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") + set(AdditionalCxxFlags ${AdditionalCFlags}) endif() set(Flags