[ros-diffs] [akhaldi] 54963: [CMAKE] * Set DBG to false in Release build type. * Set _WINKD_ to false in Release build type for MSVC builds.

akhaldi at svn.reactos.org akhaldi at svn.reactos.org
Sat Jan 14 17:31:21 UTC 2012


Author: akhaldi
Date: Sat Jan 14 17:31:20 2012
New Revision: 54963

URL: http://svn.reactos.org/svn/reactos?rev=54963&view=rev
Log:
[CMAKE]
* Set DBG to false in Release build type.
* Set _WINKD_ to false in Release build type for MSVC builds.

Modified:
    trunk/reactos/cmake/config.cmake

Modified: trunk/reactos/cmake/config.cmake
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/cmake/config.cmake?rev=54963&r1=54962&r2=54963&view=diff
==============================================================================
--- trunk/reactos/cmake/config.cmake [iso-8859-1] (original)
+++ trunk/reactos/cmake/config.cmake [iso-8859-1] Sat Jan 14 17:31:20 2012
@@ -25,14 +25,23 @@
 "Whether to compile for debugging with GDB.
 If you don't use GDB, don't	enable this.")
 
-set(DBG TRUE CACHE BOOL
+if(${CMAKE_BUILD_TYPE} MATCHES Release)
+    set(DBG FALSE CACHE BOOL
 "Whether to compile for debugging.")
+else()
+    set(DBG TRUE CACHE BOOL
+"Whether to compile for debugging.")
+endif()
 
 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.")
+    if(${CMAKE_BUILD_TYPE} MATCHES Release)
+        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()
     set(KDBG TRUE CACHE BOOL
 "Whether to compile in the integrated kernel debugger.")




More information about the Ros-diffs mailing list