aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/cmake/00-Common.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/cmake/00-Common.cmake')
-rw-r--r--linden/indra/cmake/00-Common.cmake8
1 files changed, 8 insertions, 0 deletions
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)
60 60
61 # VS optimization flags 61 # VS optimization flags
62 if(MSVC80) 62 if(MSVC80)
63
64 set(NUMBER_OF_CORES $ENV{NUMBER_OF_PROCESSORS})
65
63 set(CMAKE_CXX_FLAGS_RELEASE 66 set(CMAKE_CXX_FLAGS_RELEASE
64 "${CMAKE_CXX_FLAGS_RELEASE} /Ob2 /Oi /Ot /GT" 67 "${CMAKE_CXX_FLAGS_RELEASE} /Ob2 /Oi /Ot /GT"
65 CACHE STRING "C++ compiler release options" FORCE) 68 CACHE STRING "C++ compiler release options" FORCE)
69
70 add_definitions(
71 /MP${NUMBER_OF_CORES}
72 )
73
66 endif (MSVC80) 74 endif (MSVC80)
67 75
68 # Are we using the crummy Visual Studio KDU build workaround? 76 # Are we using the crummy Visual Studio KDU build workaround?