From edadcfadf71ac23d301a1b6fb186883d6d757ed0 Mon Sep 17 00:00:00 2001 From: McCabe Maxsted Date: Mon, 30 Mar 2009 02:42:24 -0700 Subject: Added flag for multi-core compiling in VS2005 --- ChangeLog.txt | 1 + linden/indra/cmake/00-Common.cmake | 8 ++++++++ 2 files changed, 9 insertions(+) diff --git a/ChangeLog.txt b/ChangeLog.txt index e302c11..1ddae18 100644 --- a/ChangeLog.txt +++ b/ChangeLog.txt @@ -9,6 +9,7 @@ * linden/indra/cmake/00-Common.cmake Added VS optimizations to cmake + Added flag for multi-core compiling in VS2005 2009-03-28 Jacek Antonelli diff --git a/linden/indra/cmake/00-Common.cmake b/linden/indra/cmake/00-Common.cmake index 0866a32..27838d6 100644 --- a/linden/indra/cmake/00-Common.cmake +++ b/linden/indra/cmake/00-Common.cmake @@ -60,9 +60,17 @@ if (WINDOWS) # VS optimization flags if(MSVC80) + + set(NUMBER_OF_CORES $ENV{NUMBER_OF_PROCESSORS}) + set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} /Ob2 /Oi /Ot /GT" CACHE STRING "C++ compiler release options" FORCE) + + add_definitions( + /MP${NUMBER_OF_CORES} + ) + endif (MSVC80) # Are we using the crummy Visual Studio KDU build workaround? -- cgit v1.1