diff --git a/CMakeLists.txt b/CMakeLists.txt index 8475baaff7..5a94f1576f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -162,7 +162,7 @@ set(COMPILER_SUPPORT_LIBRARIES "") # If we are using MSVC, we need /bigobj. if (MSVC) set(CMAKE_CXX_STANDARD 17) - set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /bigobj /Zm2000 /Zc:__cplusplus") + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /bigobj /Zm200 /Zc:__cplusplus") endif () # If we are using MINGW, we need sections and big-obj, otherwise we create too