summaryrefslogtreecommitdiff
path: root/indra/cmake/bugsplat.cmake
diff options
context:
space:
mode:
authorNicky <nicky.dasmijn@gmail.com>2022-04-16 22:08:40 +0200
committerNicky <nicky.dasmijn@gmail.com>2022-04-16 22:08:40 +0200
commit3ac18ad9932b4e2fda8e850bd18a524fb1593520 (patch)
tree5ab46d60fa5dbaee94a11159d0c55012bc9ba79d /indra/cmake/bugsplat.cmake
parent2c3507a9d2a32749df695ee04f7612c3049c86c8 (diff)
Streamline bugsplat target:
- Fix usage of bugsplat::bugsplat by using ll::bugsplat - Use bugsplat define by importing target not by using hand crafted magic
Diffstat (limited to 'indra/cmake/bugsplat.cmake')
-rw-r--r--indra/cmake/bugsplat.cmake8
1 files changed, 5 insertions, 3 deletions
diff --git a/indra/cmake/bugsplat.cmake b/indra/cmake/bugsplat.cmake
index af2d7bd9f2..9057ae2272 100644
--- a/indra/cmake/bugsplat.cmake
+++ b/indra/cmake/bugsplat.cmake
@@ -16,20 +16,22 @@ if (USE_BUGSPLAT)
include(Prebuilt)
use_prebuilt_binary(bugsplat)
if (WINDOWS)
- set_target_libraries( bugsplat::bugsplat
+ set_target_libraries( ll::bugsplat
${ARCH_PREBUILT_DIRS_RELEASE}/bugsplat.lib
)
elseif (DARWIN)
find_library(BUGSPLAT_LIBRARIES BugsplatMac REQUIRED
NO_DEFAULT_PATH PATHS "${ARCH_PREBUILT_DIRS_RELEASE}")
- set_target_libraries( bugsplat::bugsplat
+ set_target_libraries( ll::bugsplat
${BUGSPLAT_LIBRARIES}
)
else (WINDOWS)
message(FATAL_ERROR "BugSplat is not supported; add -DUSE_BUGSPLAT=OFF")
endif (WINDOWS)
- set(BUGSPLAT_DB "" CACHE STRING "BugSplat crash database name")
+ if( NOT BUGSPLAT_DB )
+ message( FATAL_ERROR "You need to set BUGSPLAT_DB when setting USE_BUGSPLAT" )
+ endif()
set_target_include_dirs( ll::bugsplat ${LIBS_PREBUILT_DIR}/include/bugsplat)
set_property( TARGET ll::bugsplat APPEND PROPERTY INTERFACE_COMPILE_DEFINITIONS LL_BUGSPLAT)