diff options
author | Nicky <nicky.dasmijn@gmail.com> | 2022-04-06 20:26:37 +0200 |
---|---|---|
committer | Nicky <nicky.dasmijn@gmail.com> | 2022-04-06 23:32:55 +0200 |
commit | f6a5b2496dae96e6e0af4ae073433c7e8f413536 (patch) | |
tree | 052272ff40c358eb71ad5a44aeb867f215e77bb5 /indra/cmake | |
parent | 5f7c74fa2e796c04915b6da5e7db013a94c00e2d (diff) |
Create and use bugsplat target
Diffstat (limited to 'indra/cmake')
-rw-r--r-- | indra/cmake/bugsplat.cmake | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/indra/cmake/bugsplat.cmake b/indra/cmake/bugsplat.cmake index ded109f9f1..a74518354d 100644 --- a/indra/cmake/bugsplat.cmake +++ b/indra/cmake/bugsplat.cmake @@ -9,8 +9,12 @@ else (INSTALL_PROPRIETARY) set(USE_BUGSPLAT OFF CACHE BOOL "Use the BugSplat crash reporting system") endif (INSTALL_PROPRIETARY) +if( TARGET bugsplat::bugsplat) + return() +endif() +create_target(bugsplat::bugsplat) + if (USE_BUGSPLAT) - create_target(bugsplat::bugsplat) if (NOT USESYSTEMLIBS) include(Prebuilt) use_prebuilt_binary(bugsplat) @@ -34,6 +38,6 @@ if (USE_BUGSPLAT) set(BUGSPLAT_DB "" CACHE STRING "BugSplat crash database name") set_target_include_dirs( bugsplat::bugsplat ${LIBS_PREBUILT_DIR}/include/bugsplat) - set(BUGSPLAT_DEFINE "LL_BUGSPLAT") + target_compile_definitions( bugsplat::bugsplat INTERFACE LL_BUGSPLAT) endif (USE_BUGSPLAT) |