Avoid MSVC linker warning when doing a Debug build if dependent libraries, such as libjpeg-turbo, are built using the release version of libc


git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4624 3789f03b-4d11-0410-bbf8-ca57d06f2519
diff --git a/CMakeLists.txt b/CMakeLists.txt
index d30411c..d60f935 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -88,6 +88,10 @@
   # it is not a good idea to disable them, but we do this to duplicate the
   # behavior of GCC, which is less strict.
   add_definitions(-wd4244 -wd4267 -wd4800 -wd4996)
+
+  # Avoid linker warning when doing Debug build if dependent libraries are
+  # linked with the Release version of the static C library.
+  set(CMAKE_EXE_LINKER_FLAGS_DEBUG "${CMAKE_EXE_LINKER_FLAGS_DEBUG} /NODEFAULTLIB:LIBCMT")
 endif()
 
 # Minimum version is Windows 2000 (5.0)