Explorar o código

Fixed compilation for windows where /MTd and /MT were used instead of /MDd and /MD (which is the setting for CTK) when compiling DCMTK. Now, DCMTK does not override CMake's compiler flags on WIN32 any more (disabled DCMTK's CMake option DCMTK_OVERWRITE_WIN32_COMPILER_FLAGS which usually uses /MT and /MTd).

Michael Onken %!s(int64=13) %!d(string=hai) anos
pai
achega
615b04ad0c
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      CMakeExternals/DCMTK.cmake

+ 1 - 1
CMakeExternals/DCMTK.cmake

@@ -42,7 +42,7 @@ IF(${add_project})
         ${CMAKE_OSX_EXTERNAL_PROJECT_ARGS}
         -DBUILD_TESTING:BOOL=OFF
         -DDCMTK_BUILD_APPS:BOOL=ON # Build also dmctk tools (movescu, storescp, ...)
-      )
+        -DDCMTK_OVERWRITE_WIN32_COMPILER_FLAGS:BOOL=OFF)
     SET(DCMTK_DIR ${ep_install_dir})
 
 # This was used during heavy development on DCMTK itself.