summaryrefslogtreecommitdiff
path: root/indra/cmake
diff options
context:
space:
mode:
authorBryan O'Sullivan <bos@lindenlab.com>2009-03-27 18:53:37 +0000
committerBryan O'Sullivan <bos@lindenlab.com>2009-03-27 18:53:37 +0000
commit60afa5c8640eb0b90f3aceb2a0945c2ca449a643 (patch)
tree2254a69ba4bd22cab70d9dfc686729c2c02bc89e /indra/cmake
parent4e570fac985d36f80cd1e0c0c712ac4eedb337f3 (diff)
Drop an unnecessary sed from linden.mass.
Diffstat (limited to 'indra/cmake')
-rw-r--r--indra/cmake/00-Common.cmake12
1 files changed, 11 insertions, 1 deletions
diff --git a/indra/cmake/00-Common.cmake b/indra/cmake/00-Common.cmake
index a3c9becf0a..ec8b261406 100644
--- a/indra/cmake/00-Common.cmake
+++ b/indra/cmake/00-Common.cmake
@@ -7,9 +7,19 @@ include(Variables)
# Portable compilation flags.
+if (EXISTS ${CMAKE_SOURCE_DIR}/llphysics)
+ # The release build should only offer to send crash reports if we're
+ # building from a Linden internal source tree.
+ set(release_crash_reports 1)
+else (EXISTS ${CMAKE_SOURCE_DIR}/llphysics)
+ set(release_crash_reports 0)
+endif (EXISTS ${CMAKE_SOURCE_DIR}/llphysics)
+
set(CMAKE_CXX_FLAGS_DEBUG "-D_DEBUG -DLL_DEBUG=1")
set(CMAKE_CXX_FLAGS_RELEASE
- "-DLL_RELEASE=1 -DLL_RELEASE_FOR_DOWNLOAD=1 -D_SECURE_SCL=0 -DLL_SEND_CRASH_REPORTS=1 -DNDEBUG")
+ "-DLL_RELEASE=1 -DLL_RELEASE_FOR_DOWNLOAD=1 -D_SECURE_SCL=0
+-DLL_SEND_CRASH_REPORTS=${release_crash_reports} -DNDEBUG")
+
set(CMAKE_CXX_FLAGS_RELWITHDEBINFO
"-DLL_RELEASE=1 -D_SECURE_SCL=0 -DLL_SEND_CRASH_REPORTS=0 -DNDEBUG -DLL_RELEASE_WITH_DEBUG_INFO=1")