mirror of
https://github.com/reactos/reactos.git
synced 2025-04-22 05:00:27 +00:00
[CMAKE]
* Set DBG to false in Release build type. * Set _WINKD_ to false in Release build type for MSVC builds. svn path=/trunk/; revision=54963
This commit is contained in:
parent
17801390f6
commit
ac19035f70
1 changed files with 12 additions and 3 deletions
|
@ -25,14 +25,23 @@ set(GDB FALSE CACHE BOOL
|
||||||
"Whether to compile for debugging with GDB.
|
"Whether to compile for debugging with GDB.
|
||||||
If you don't use GDB, don't enable this.")
|
If you don't use GDB, don't enable this.")
|
||||||
|
|
||||||
|
if(${CMAKE_BUILD_TYPE} MATCHES Release)
|
||||||
|
set(DBG FALSE CACHE BOOL
|
||||||
|
"Whether to compile for debugging.")
|
||||||
|
else()
|
||||||
set(DBG TRUE CACHE BOOL
|
set(DBG TRUE CACHE BOOL
|
||||||
"Whether to compile for debugging.")
|
"Whether to compile for debugging.")
|
||||||
|
endif()
|
||||||
|
|
||||||
if(MSVC)
|
if(MSVC)
|
||||||
set(KDBG FALSE CACHE BOOL
|
set(KDBG FALSE CACHE BOOL
|
||||||
"Whether to compile in the integrated kernel debugger.")
|
"Whether to compile in the integrated kernel debugger.")
|
||||||
set(_WINKD_ TRUE CACHE BOOL
|
if(${CMAKE_BUILD_TYPE} MATCHES Release)
|
||||||
"Whether to compile with the KD protocol.")
|
set(_WINKD_ FALSE CACHE BOOL "Whether to compile with the KD protocol.")
|
||||||
|
else()
|
||||||
|
set(_WINKD_ TRUE CACHE BOOL "Whether to compile with the KD protocol.")
|
||||||
|
endif()
|
||||||
|
|
||||||
else()
|
else()
|
||||||
set(KDBG TRUE CACHE BOOL
|
set(KDBG TRUE CACHE BOOL
|
||||||
"Whether to compile in the integrated kernel debugger.")
|
"Whether to compile in the integrated kernel debugger.")
|
||||||
|
|
Loading…
Reference in a new issue