diff options
author | Nat Goodspeed <nat@lindenlab.com> | 2018-05-23 17:10:08 -0400 |
---|---|---|
committer | Nat Goodspeed <nat@lindenlab.com> | 2018-05-23 17:10:08 -0400 |
commit | c665a05b7863277e7da744f70421c37d8786c230 (patch) | |
tree | ee6e4f08e129cae1091f7be57e1ba884bbb446ce /indra/cmake/bugsplat.cmake | |
parent | c730ae22f8dc4d31db00244da2fdc44e2e943bd7 (diff) | |
parent | 43716d580049bb026904133f0804e8c8d1f519aa (diff) |
Automated merge with ssh://bitbucket.org/oz_linden/maint-8675
Diffstat (limited to 'indra/cmake/bugsplat.cmake')
-rw-r--r-- | indra/cmake/bugsplat.cmake | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/indra/cmake/bugsplat.cmake b/indra/cmake/bugsplat.cmake new file mode 100644 index 0000000000..a7f4194905 --- /dev/null +++ b/indra/cmake/bugsplat.cmake @@ -0,0 +1,30 @@ +# BUGSPLAT can be set when launching the make using the argument -DBUGSPLAT:BOOL=ON +# When building using proprietary binaries though (i.e. having access to LL private servers), +# we always build with BUGSPLAT. +# Open source devs should use the -DBUGSPLAT:BOOL=ON then if they want to +# build with BugSplat, whether they are using USESYSTEMLIBS or not. +if (INSTALL_PROPRIETARY) + set(BUGSPLAT ON CACHE BOOL "Using BugSplat crash reporting library.") +endif (INSTALL_PROPRIETARY) + +if (BUGSPLAT) + if (USESYSTEMLIBS) + set(BUGSPLAT_FIND_QUIETLY ON) + set(BUGSPLAT_FIND_REQUIRED ON) + include(FindBUGSPLAT) + else (USESYSTEMLIBS) + include(Prebuilt) + use_prebuilt_binary(bugsplat) + if (WINDOWS) + set(BUGSPLAT_LIBRARIES + ${ARCH_PREBUILT_DIRS_RELEASE}/bugsplat.lib + ) + elseif (DARWIN) + find_library(BUGSPLAT_LIBRARIES BugsplatMac + PATHS "${ARCH_PREBUILT_DIRS_RELEASE}") + else (WINDOWS) + + endif (WINDOWS) + set(BUGSPLAT_INCLUDE_DIR ${LIBS_PREBUILT_DIR}/include/bugsplat) + endif (USESYSTEMLIBS) +endif (BUGSPLAT) |