From b4fb05e8a91f2f9be7128e9d752e754b6f1fa989 Mon Sep 17 00:00:00 2001 From: Timo Kreuzer Date: Sat, 16 Mar 2013 23:28:27 +0000 Subject: [PATCH] [CMAKE] Do not compile KDBG by default when building release builds svn path=/trunk/; revision=58530 --- reactos/cmake/config.cmake | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/reactos/cmake/config.cmake b/reactos/cmake/config.cmake index d3a6f26b644..13a566a2229 100644 --- a/reactos/cmake/config.cmake +++ b/reactos/cmake/config.cmake @@ -46,10 +46,12 @@ if(MSVC) endif() 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.") + if(CMAKE_BUILD_TYPE STREQUAL "Release") + set(KDBG FALSE CACHE BOOL "Whether to compile in the integrated kernel debugger.") + else() + set(KDBG TRUE CACHE BOOL "Whether to compile in the integrated kernel debugger.") + endif() + set(_WINKD_ FALSE CACHE BOOL "Whether to compile with the KD protocol.") endif() set(_ELF_ FALSE CACHE BOOL