diff options
author | Nicky Dasmijn <nicky.dasmijn@posteo.nl> | 2022-09-17 12:57:49 +0200 |
---|---|---|
committer | Nicky Dasmijn <nicky.dasmijn@posteo.nl> | 2022-09-17 12:57:49 +0200 |
commit | 8c1427c39f90a322d4069162636e4ee433b664fb (patch) | |
tree | eab95c196d12a60df9ee03a746a13362669b7655 | |
parent | 7a71cea15bcef59c7085657fba9ae6bdb058cc5b (diff) |
Only set include property on ll::bugpsplat target when on Windows.
The include was preveiously declared for all platforms, but the Mac
package does not even ship this include directory. With the new way
cmake works this will lead to an error (which is good, so we don't
end with bogus include dirs).
-rw-r--r-- | indra/cmake/bugsplat.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/indra/cmake/bugsplat.cmake b/indra/cmake/bugsplat.cmake index f645d9d449..509981d72c 100644 --- a/indra/cmake/bugsplat.cmake +++ b/indra/cmake/bugsplat.cmake @@ -19,6 +19,7 @@ if (USE_BUGSPLAT) target_link_libraries( ll::bugsplat INTERFACE ${ARCH_PREBUILT_DIRS_RELEASE}/bugsplat.lib ) + target_include_directories( ll::bugsplat SYSTEM INTERFACE ${LIBS_PREBUILT_DIR}/include/bugsplat) elseif (DARWIN) find_library(BUGSPLAT_LIBRARIES BugsplatMac REQUIRED NO_DEFAULT_PATH PATHS "${ARCH_PREBUILT_DIRS_RELEASE}") @@ -33,7 +34,6 @@ if (USE_BUGSPLAT) message( FATAL_ERROR "You need to set BUGSPLAT_DB when setting USE_BUGSPLAT" ) endif() - target_include_directories( ll::bugsplat SYSTEM INTERFACE ${LIBS_PREBUILT_DIR}/include/bugsplat) set_property( TARGET ll::bugsplat APPEND PROPERTY INTERFACE_COMPILE_DEFINITIONS LL_BUGSPLAT) else() set(BUGSPLAT_DB "" CACHE STRING "BugSplat crash database name") |