Explorar o código

CMakeLists: Specify /Zm200 when compiling in MSVC

This increases the memory heap size for constructing precompiled headers to 2x the default.
Morph %!s(int64=4) %!d(string=hai) anos
pai
achega
c61857286d
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      src/CMakeLists.txt

+ 2 - 0
src/CMakeLists.txt

@@ -24,6 +24,7 @@ if (MSVC)
     # /W3                 - Level 3 warnings
     # /MP                 - Multi-threaded compilation
     # /Zi                 - Output debugging information
+    # /Zm                 - Specifies the precompiled header memory allocation limit
     # /Zo                 - Enhanced debug info for optimized builds
     # /permissive-        - Enables stricter C++ standards conformance checks
     # /EHsc               - C++-only exception handling semantics
@@ -36,6 +37,7 @@ if (MSVC)
     add_compile_options(
         /MP
         /Zi
+        /Zm200
         /Zo
         /permissive-
         /EHsc