瀏覽代碼

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 13 年之前
父節點
當前提交
615b04ad0c
共有 1 個文件被更改,包括 1 次插入1 次删除
  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.