diff options
Diffstat (limited to 'linden/indra/cmake/00-Common.cmake')
-rw-r--r-- | linden/indra/cmake/00-Common.cmake | 23 |
1 files changed, 7 insertions, 16 deletions
diff --git a/linden/indra/cmake/00-Common.cmake b/linden/indra/cmake/00-Common.cmake index 27838d6..2d691ad 100644 --- a/linden/indra/cmake/00-Common.cmake +++ b/linden/indra/cmake/00-Common.cmake | |||
@@ -31,9 +31,15 @@ if (WINDOWS) | |||
31 | set(CMAKE_CXX_FLAGS_RELWITHDEBINFO | 31 | set(CMAKE_CXX_FLAGS_RELWITHDEBINFO |
32 | "${CMAKE_CXX_FLAGS_RELWITHDEBINFO} /Od /Zi /MT" | 32 | "${CMAKE_CXX_FLAGS_RELWITHDEBINFO} /Od /Zi /MT" |
33 | CACHE STRING "C++ compiler release-with-debug options" FORCE) | 33 | CACHE STRING "C++ compiler release-with-debug options" FORCE) |
34 | set(CMAKE_CXX_FLAGS_RELEASE | 34 | if (MSVC80) |
35 | set(CMAKE_CXX_FLAGS_RELEASE | ||
36 | "${CMAKE_CXX_FLAGS_RELEASE} /O2 /Ob2 /Oi /Ot /Oy /GT /Zi /MT" | ||
37 | CACHE STRING "C++ compiler release options" FORCE) | ||
38 | else (MSVC80) | ||
39 | set(CMAKE_CXX_FLAGS_RELEASE | ||
35 | "${CMAKE_CXX_FLAGS_RELEASE} ${LL_CXX_FLAGS} /O2 /Zi /MT" | 40 | "${CMAKE_CXX_FLAGS_RELEASE} ${LL_CXX_FLAGS} /O2 /Zi /MT" |
36 | CACHE STRING "C++ compiler release options" FORCE) | 41 | CACHE STRING "C++ compiler release options" FORCE) |
42 | endif (MSVC80) | ||
37 | 43 | ||
38 | add_definitions( | 44 | add_definitions( |
39 | /DLL_WINDOWS=1 | 45 | /DLL_WINDOWS=1 |
@@ -57,21 +63,6 @@ if (WINDOWS) | |||
57 | /Zc:wchar_t- | 63 | /Zc:wchar_t- |
58 | ) | 64 | ) |
59 | endif (MSVC80 OR MSVC90) | 65 | endif (MSVC80 OR MSVC90) |
60 | |||
61 | # VS optimization flags | ||
62 | if(MSVC80) | ||
63 | |||
64 | set(NUMBER_OF_CORES $ENV{NUMBER_OF_PROCESSORS}) | ||
65 | |||
66 | set(CMAKE_CXX_FLAGS_RELEASE | ||
67 | "${CMAKE_CXX_FLAGS_RELEASE} /Ob2 /Oi /Ot /GT" | ||
68 | CACHE STRING "C++ compiler release options" FORCE) | ||
69 | |||
70 | add_definitions( | ||
71 | /MP${NUMBER_OF_CORES} | ||
72 | ) | ||
73 | |||
74 | endif (MSVC80) | ||
75 | 66 | ||
76 | # Are we using the crummy Visual Studio KDU build workaround? | 67 | # Are we using the crummy Visual Studio KDU build workaround? |
77 | if (NOT VS_DISABLE_FATAL_WARNINGS) | 68 | if (NOT VS_DISABLE_FATAL_WARNINGS) |