From: Hendrik Leppkes Date: Sat, 6 Mar 2010 09:55:56 +0000 (+0100) Subject: Allow the creation of win32 debug builds. X-Git-Tag: 0.7-beta1~144 X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=commitdiff_plain;h=3baf07e18dc077dfcdfb8f91b2abbe4ae4368519;ds=sidebyside Allow the creation of win32 debug builds. --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 698cc492..0a3878ce 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -298,6 +298,9 @@ endif(STATIC AND CMAKE_COMPILER_IS_GNUCXX) if(WIN32) link_libraries(imm32 winmm dbghelp Secur32) # missing by default :/ if(MSVC) + set(CMAKE_EXE_LINKER_FLAGS_RELWITHDEBUGINFO "/debug /INCREMENTAL:YES /NODEFAULTLIB:libcmt /DEFAULTLIB:msvcrt") + set(CMAKE_EXE_LINKER_FLAGS_DEBUG "${CMAKE_EXE_LINKER_FLAGS_RELWITHDEBUGINFO}") + set(CMAKE_EXE_LINKER_FLAGS_DEBUGFULL "${CMAKE_EXE_LINKER_FLAGS_RELWITHDEBUGINFO}") link_libraries(Version dwmapi shlwapi) endif(MSVC) if(HAVE_SSL AND STATIC)