Sync with trunk revision r58045 to bring the corrections on configure.cmd and on...
[reactos.git] / cmake / config.cmake
index b66df1a..3c28265 100644 (file)
@@ -21,11 +21,14 @@ set(OPTIMIZE "1" CACHE STRING
   4 = -O2
   5 = -O3")
 
+set(LTCG FALSE CACHE BOOL
+"Whether to build with link-time code generation")
+
 set(GDB FALSE CACHE BOOL
 "Whether to compile for debugging with GDB.
 If you don't use GDB, don't    enable this.")
 
-if(${CMAKE_BUILD_TYPE} MATCHES Release)
+if(CMAKE_BUILD_TYPE STREQUAL "Release")
     set(DBG FALSE CACHE BOOL
 "Whether to compile for debugging.")
 else()
@@ -36,12 +39,12 @@ endif()
 if(MSVC)
     set(KDBG FALSE CACHE BOOL
 "Whether to compile in the integrated kernel debugger.")
-    if(${CMAKE_BUILD_TYPE} MATCHES Release)
+    if(CMAKE_BUILD_TYPE STREQUAL "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.")
@@ -66,6 +69,15 @@ 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()