From 39b40736435bc8aeb7a57a430536d4deb13c250e Mon Sep 17 00:00:00 2001 From: Amine Khaldi Date: Fri, 24 Jun 2011 21:28:43 +0000 Subject: [PATCH] [CMAKE] * Disable kdbg and enable _WINKD_ by default for msvc builds. svn path=/trunk/; revision=52445 --- reactos/cmake/config.cmake | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/reactos/cmake/config.cmake b/reactos/cmake/config.cmake index 4bf055480a6..aabef676321 100644 --- a/reactos/cmake/config.cmake +++ b/reactos/cmake/config.cmake @@ -21,18 +21,24 @@ set(OPTIMIZE "1" CACHE STRING 4 = -O2 5 = -O3") -set(DBG TRUE CACHE BOOL -"Whether to compile for debugging.") - -set(KDBG TRUE CACHE BOOL -"Whether to compile in the integrated kernel debugger.") - set(GDB FALSE CACHE BOOL "Whether to compile for debugging with GDB. If you don't use GDB, don't enable this.") -set(_WINKD_ FALSE CACHE BOOL +set(DBG TRUE CACHE BOOL +"Whether to compile for debugging.") + +if(MSVC) + set(KDBG FALSE CACHE BOOL +"Whether to compile in the integrated kernel debugger.") + set(_WINKD_ TRUE CACHE BOOL "Whether to compile with the KD protocol.") +else() + set(KDBG TRUE CACHE BOOL +"Whether to compile in the integrated kernel debugger.") + set(_WINKD_ FALSE CACHE BOOL +"Whether to compile with the KD protocol.") +endif() set(_ELF_ FALSE CACHE BOOL "Whether to compile support for ELF files.