diff options
author | Jacek Antonelli | 2008-12-01 17:39:58 -0600 |
---|---|---|
committer | Jacek Antonelli | 2008-12-01 17:40:06 -0600 |
commit | 7abecb48babe6a6f09bf6692ba55076546cfced9 (patch) | |
tree | 8d18a88513fb97adf32c10aae78f4be1984942db /linden/indra/cmake/00-Common.cmake | |
parent | Second Life viewer sources 1.21.6 (diff) | |
download | meta-impy-7abecb48babe6a6f09bf6692ba55076546cfced9.zip meta-impy-7abecb48babe6a6f09bf6692ba55076546cfced9.tar.gz meta-impy-7abecb48babe6a6f09bf6692ba55076546cfced9.tar.bz2 meta-impy-7abecb48babe6a6f09bf6692ba55076546cfced9.tar.xz |
Second Life viewer sources 1.22.0-RC
Diffstat (limited to '')
-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 | ||