diff options
Diffstat (limited to 'indra/cmake')
| -rw-r--r-- | indra/cmake/bugsplat.cmake | 8 | 
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)  | 
