changeset 113:84c290aea085 default tip

trying to explicitly force the CRT
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 03 Sep 2025 12:07:06 +0200
parents 1973bfe929ea
children
files Resources/CMake/GdcmConfiguration.cmake
diffstat 1 files changed, 5 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- 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