aboutsummaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorVincent_Michael <Vincent_Michael@gmx.de>2012-12-29 15:35:10 +0100
committerVincent_Michael <Vincent_Michael@gmx.de>2012-12-29 15:35:10 +0100
commit871f8c800392cdf8739a6bd4808c532ba88e85ea (patch)
tree441274a3b03ea7b41f5817a6d82d0dcb3e4d114c /cmake
parentff5b0a14a4e542a102b9adb84bc8e1ee7396180b (diff)
parent91f1e53ba2c601d2190d54f2ed058dfef000f22a (diff)
Merge branch 'master' of github.com:TrinityCore/TrinityCore into mmaps
Diffstat (limited to 'cmake')
-rw-r--r--cmake/compiler/msvc/settings.cmake4
1 files changed, 4 insertions, 0 deletions
diff --git a/cmake/compiler/msvc/settings.cmake b/cmake/compiler/msvc/settings.cmake
index 3d8fe43b6aa..0aa5d93a4b3 100644
--- a/cmake/compiler/msvc/settings.cmake
+++ b/cmake/compiler/msvc/settings.cmake
@@ -50,3 +50,7 @@ if(NOT WITH_WARNINGS)
message(STATUS "MSVC: Disabled generic compiletime warnings")
endif()
endif()
+
+# Specify Precompiled Header Memory Allocation Limit
+# (Fix a compiler-problem when using PCH - the /Ym flag is adjusted by the compiler in MSVC2012, hence we need to set an upper limit to avoid disrupancies)
+set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /Zm500")