[FAST486][NTVDM]
[reactos.git] / cmake / config.cmake
index d3a6f26..9dd983b 100644 (file)
@@ -10,7 +10,7 @@ set(OARCH "pentium" CACHE STRING
 set(TUNE "i686" CACHE STRING
 "Which CPU ReactOS should be optimized for.")
 
-set(OPTIMIZE "1" CACHE STRING
+set(OPTIMIZE "4" CACHE STRING
 "What level of optimization to use.
  0 = off
  1 = Default option, optimize for size (-Os) with some additional options
@@ -26,7 +26,7 @@ set(LTCG FALSE CACHE BOOL
 
 set(GDB FALSE CACHE BOOL
 "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 STREQUAL "Release")
     set(DBG FALSE CACHE BOOL
@@ -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
@@ -69,15 +71,8 @@ set(GENERATE_DEPENDENCY_GRAPH FALSE CACHE BOOL
 "Whether to create a graphml dependency of dlls.")
 
 if(MSVC)
-
 set(_PREFAST_ FALSE CACHE BOOL
 "Whether to enable PREFAST while compiling.")
 set(_VS_ANALYZE_ FALSE CACHE BOOL
 "Whether to enable static analysis while compiling.")
-
-else()
-
-set(USE_PSEH3 FALSE CACHE BOOL
-"Whether to use the new PSEH3 library (requires GCC 4.5 and newer).")
-
 endif()