diff options
Diffstat (limited to 'linden/indra/cmake/00-Common.cmake')
-rw-r--r-- | linden/indra/cmake/00-Common.cmake | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/linden/indra/cmake/00-Common.cmake b/linden/indra/cmake/00-Common.cmake index 240853a..bf2d2c3 100644 --- a/linden/indra/cmake/00-Common.cmake +++ b/linden/indra/cmake/00-Common.cmake | |||
@@ -49,6 +49,10 @@ if (WINDOWS) | |||
49 | ) | 49 | ) |
50 | 50 | ||
51 | if(MSVC80 OR MSVC90) | 51 | if(MSVC80 OR MSVC90) |
52 | set(CMAKE_CXX_FLAGS_RELEASE | ||
53 | "${CMAKE_CXX_FLAGS_RELEASE} -D_SECURE_STL=0 -D_HAS_ITERATOR_DEBUGGING=0" | ||
54 | CACHE STRING "C++ compiler release options" FORCE) | ||
55 | |||
52 | add_definitions( | 56 | add_definitions( |
53 | /Zc:wchar_t- | 57 | /Zc:wchar_t- |
54 | ) | 58 | ) |
@@ -165,6 +169,10 @@ if (DARWIN) | |||
165 | set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_CXX_LINK_FLAGS}") | 169 | set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_CXX_LINK_FLAGS}") |
166 | set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -mlong-branch") | 170 | set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -mlong-branch") |
167 | set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -mlong-branch") | 171 | set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -mlong-branch") |
172 | # NOTE: it's critical that the optimization flag is put in front. | ||
173 | # NOTE: it's critical to have both CXX_FLAGS and C_FLAGS covered. | ||
174 | set(CMAKE_CXX_FLAGS_RELWITHDEBINFO "-O0 ${CMAKE_CXX_FLAGS_RELWITHDEBINFO}") | ||
175 | set(CMAKE_C_FLAGS_RELWITHDEBINFO "-O0 ${CMAKE_C_FLAGS_RELWITHDEBINFO}") | ||
168 | endif (DARWIN) | 176 | endif (DARWIN) |
169 | 177 | ||
170 | 178 | ||