[Orxonox-commit 2006] r6723 - code/trunk/cmake

rgrieder at orxonox.net rgrieder at orxonox.net
Tue Apr 13 22:09:01 CEST 2010


Author: rgrieder
Date: 2010-04-13 22:09:00 +0200 (Tue, 13 Apr 2010)
New Revision: 6723

Modified:
   code/trunk/cmake/CompilerConfigMSVC.cmake
Log:
Using /MP instead of /MP2 for MSVC. That way the number of processes for compiling is chosen automatically according to available CPUs.

Modified: code/trunk/cmake/CompilerConfigMSVC.cmake
===================================================================
--- code/trunk/cmake/CompilerConfigMSVC.cmake	2010-04-13 16:17:51 UTC (rev 6722)
+++ code/trunk/cmake/CompilerConfigMSVC.cmake	2010-04-13 20:09:00 UTC (rev 6723)
@@ -69,10 +69,10 @@
 ADD_COMPILER_FLAGS("-D_CRT_SECURE_NO_WARNINGS" CACHE)
 
 # Overwrite CMake default flags here.
-SET_COMPILER_FLAGS("-MDd -Od -Zi -D_DEBUG -MP2 -RTC1" Debug          CACHE)
-SET_COMPILER_FLAGS("-MD  -O2     -DNDEBUG -MP2"       Release        CACHE)
-SET_COMPILER_FLAGS("-MD  -O2 -Zi -DNDEBUG -MP2"       RelWithDebInfo CACHE)
-SET_COMPILER_FLAGS("-MD  -O1     -DNDEBUG -MP2"       MinSizeRel     CACHE)
+SET_COMPILER_FLAGS("-MDd -Od -Zi -D_DEBUG -MP -RTC1" Debug          CACHE)
+SET_COMPILER_FLAGS("-MD  -O2     -DNDEBUG -MP"       Release        CACHE)
+SET_COMPILER_FLAGS("-MD  -O2 -Zi -DNDEBUG -MP"       RelWithDebInfo CACHE)
+SET_COMPILER_FLAGS("-MD  -O1     -DNDEBUG -MP"       MinSizeRel     CACHE)
 ADD_COMPILER_FLAGS("-D_SECURE_SCL=0" MSVC9 ReleaseAll CACHE)
 
 # Use Link time code generation for Release config if ORXONOX_RELEASE is defined




More information about the Orxonox-commit mailing list