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.cmake18
1 files changed, 16 insertions, 2 deletions
diff --git a/linden/indra/cmake/00-Common.cmake b/linden/indra/cmake/00-Common.cmake
index 1a24a41..9ff5906 100644
--- a/linden/indra/cmake/00-Common.cmake
+++ b/linden/indra/cmake/00-Common.cmake
@@ -1,6 +1,6 @@
1# -*- cmake -*- 1# -*- cmake -*-
2# 2#
3# Compilation options shared by all Second Life components. 3# Compilation options shared by all components.
4 4
5include(Variables) 5include(Variables)
6 6
@@ -69,6 +69,10 @@ if (WINDOWS)
69 /MP 69 /MP
70 ) 70 )
71 71
72 add_definitions(
73 /DUSE_OTR=1
74 )
75
72 if(MSVC80 OR MSVC90) 76 if(MSVC80 OR MSVC90)
73 set(CMAKE_CXX_FLAGS_RELEASE 77 set(CMAKE_CXX_FLAGS_RELEASE
74 "${CMAKE_CXX_FLAGS_RELEASE} -D_SECURE_STL=0 -D_HAS_ITERATOR_DEBUGGING=0" 78 "${CMAKE_CXX_FLAGS_RELEASE} -D_SECURE_STL=0 -D_HAS_ITERATOR_DEBUGGING=0"
@@ -149,6 +153,10 @@ if (LINUX)
149 -pthread 153 -pthread
150 ) 154 )
151 155
156 add_definitions(
157 -DUSE_OTR=1
158 )
159
152 if (SERVER) 160 if (SERVER)
153 set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -ftemplate-depth-60") 161 set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -ftemplate-depth-60")
154 if (EXISTS /etc/debian_version) 162 if (EXISTS /etc/debian_version)
@@ -172,7 +180,8 @@ if (LINUX)
172 endif (SERVER) 180 endif (SERVER)
173 181
174 if (VIEWER) 182 if (VIEWER)
175 add_definitions(-DAPPID=imprudence) 183 # Hmm, APPID does not seem to be used anywhere, but might be used implicitly somewhere. It also does not like being "meta-impy", so changing this to stop it bitching.
184 add_definitions(-DAPPID=metaImpy)
176 add_definitions(-fvisibility=hidden) 185 add_definitions(-fvisibility=hidden)
177 # don't catch SIGCHLD in our base application class for the viewer - some of our 3rd party libs may need their *own* SIGCHLD handler to work. Sigh! The viewer doesn't need to catch SIGCHLD anyway. 186 # don't catch SIGCHLD in our base application class for the viewer - some of our 3rd party libs may need their *own* SIGCHLD handler to work. Sigh! The viewer doesn't need to catch SIGCHLD anyway.
178 add_definitions(-DLL_IGNORE_SIGCHLD) 187 add_definitions(-DLL_IGNORE_SIGCHLD)
@@ -195,6 +204,11 @@ endif (LINUX)
195 204
196if (DARWIN) 205if (DARWIN)
197 add_definitions(-DLL_DARWIN=1) 206 add_definitions(-DLL_DARWIN=1)
207
208 add_definitions(
209 -DUSE_OTR=1
210 )
211
198 set(CMAKE_CXX_LINK_FLAGS "-Wl,-headerpad_max_install_names,-search_paths_first") 212 set(CMAKE_CXX_LINK_FLAGS "-Wl,-headerpad_max_install_names,-search_paths_first")
199 set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_CXX_LINK_FLAGS}") 213 set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_CXX_LINK_FLAGS}")
200 set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -mlong-branch -msse3 -mssse3 -w") 214 set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -mlong-branch -msse3 -mssse3 -w")