Sync with trunk revision r58045 to bring the corrections on configure.cmd and on...
[reactos.git] / cmake / config-amd64.cmake
index 31b0609..c84262f 100644 (file)
@@ -1,43 +1,51 @@
-\r
-set(SARCH "" CACHE STRING\r
-"Sub-architecture to build for.")\r
-\r
-set(OARCH "athlon64" CACHE STRING\r
-"Generate instructions for this CPU type. Specify one of:\r
- k8 opteron athlon64 athlon-fx")\r
-\r
-set (OPTIMIZE "1" CACHE STRING\r
-"What level of optimisation to use.\r
-  0 = off\r
-  1 = Default option, optimize for size (-Os) with some additional options\r
-  2 = -Os\r
-  3 = -O1\r
-  4 = -O2\r
-  5 = -O3")\r
-\r
-set(DBG TRUE CACHE BOOL\r
-"Whether to compile for debugging.")\r
-\r
-set(KDBG FALSE CACHE BOOL\r
-"Whether to compile in the integrated kernel debugger.")\r
-\r
-set(GDB FALSE CACHE BOOL\r
-"Whether to compile for debugging with GDB.\r
-If you don't use GDB, don't    enable this.")\r
-\r
-set(_WINKD_ TRUE CACHE BOOL\r
-"Whether to compile with the KD protocol.")\r
-\r
-set(_ELF_ FALSE CACHE BOOL\r
-"Whether to compile support for ELF files.\r
-Do not enable unless you know what you're doing.")\r
-\r
-set(NSWPAT FALSE CACHE BOOL\r
-"Whether to compile apps/libs with features covered software patents or not.\r
-If you live in a country where software patents are valid/apply, don't\r
-enable this (except they/you purchased a license from the patent owner).\r
-This settings is disabled (0) by default.")\r
-\r
-set(USERMODE TRUE CACHE BOOL\r
-"Whether to compile any usermode parts. This is while kernel mode is under\r
- heavy development and usermode part not relevant for bootcd.")\r
+
+set(SARCH "" CACHE STRING
+"Sub-architecture to build for.")
+
+set(OARCH "athlon64" CACHE STRING
+"Generate instructions for this CPU type. Specify one of:
+ k8 opteron athlon64 athlon-fx")
+
+set (OPTIMIZE "1" CACHE STRING
+"What level of optimisation to use.
+  0 = off
+  1 = Default option, optimize for size (-Os) with some additional options
+  2 = -Os
+  3 = -O1
+  4 = -O2
+  5 = -O3")
+
+set(LTCG FALSE CACHE BOOL
+"Whether to build with link-time code generation")
+
+set(DBG TRUE CACHE BOOL
+"Whether to compile for debugging.")
+
+set(KDBG FALSE CACHE BOOL
+"Whether to compile in the integrated kernel debugger.")
+
+set(GDB FALSE CACHE BOOL
+"Whether to compile for debugging with GDB.
+If you don't use GDB, don't    enable this.")
+
+set(_WINKD_ TRUE CACHE BOOL
+"Whether to compile with the KD protocol.")
+
+set(_ELF_ FALSE CACHE BOOL
+"Whether to compile support for ELF files.
+Do not enable unless you know what you're doing.")
+
+set(NSWPAT FALSE CACHE BOOL
+"Whether to compile apps/libs with features covered software patents or not.
+If you live in a country where software patents are valid/apply, don't
+enable this (except they/you purchased a license from the patent owner).
+This settings is disabled (0) by default.")
+
+set(USERMODE TRUE CACHE BOOL
+"Whether to compile any usermode parts. This is while kernel mode is under
+ heavy development and usermode part not relevant for bootcd.")
+
+if(MSVC)
+set(_PREFAST_ FALSE CACHE BOOL
+"Whether to enable PREFAST while compiling.")
+endif()