Skip to content
Browse files

CMake/Buildsystem: Fix a small compiler-problem when using PCH with M…

…SVC - the /Ym flag is adjusted by the compiler in MSVC2012, hence we need to set an upper limit to avoid disrupancies

Please note that this is not 'very well tested'.
  • Loading branch information...
1 parent 2048877 commit 91f1e53ba2c601d2190d54f2ed058dfef000f22a @click click committed Dec 29, 2012
Showing with 4 additions and 0 deletions.
  1. +4 −0 cmake/compiler/msvc/settings.cmake
View
4 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")

2 comments on commit 91f1e53

@devastates

Yes i have too this warning ?

@click
TrinityCore member
click commented on 91f1e53 Dec 31, 2012

Hm, CMake seems to set this flag by itself - got to do this another way then...

Please sign in to comment.
Something went wrong with that request. Please try again.