diff options
author | DRC <dcommander@users.sourceforge.net> | 2011-08-10 20:02:13 +0000 |
---|---|---|
committer | DRC <dcommander@users.sourceforge.net> | 2011-08-10 20:02:13 +0000 |
commit | fcc0d1cdf9903df2a6203feef84d1daa0511e6c8 (patch) | |
tree | ba863c0779be5375f0dc05f8ed1d1a5df67c9244 | |
parent | ff5ca2da00762c4d4004500d45aa44dfcc5fffce (diff) | |
download | tigervnc-fcc0d1cdf9903df2a6203feef84d1daa0511e6c8.tar.gz tigervnc-fcc0d1cdf9903df2a6203feef84d1daa0511e6c8.zip |
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
-rw-r--r-- | CMakeLists.txt | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index d30411c8..d60f935a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -88,6 +88,10 @@ if(MSVC) # 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) |