aboutsummaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorFurkan Sahin <furkan-dev@proton.me>2015-12-22 00:32:41 +0100
committerFurkan Sahin <furkan-dev@proton.me>2015-12-22 00:32:41 +0100
commit08b4332a1505eb8792da61403216f38d8e549bbe (patch)
tree666437c6bf7e764753d7765ffbdda45ecfd05d9d /CMakeLists.txt
parent89addf8646dd4a5b9741e4ca64a71a5b1f4e0117 (diff)
fix backtrace detection in CMake
works on arch (glibc) and void linux (tested with musl libc) now
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index bb13ef96..4c349865 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -61,9 +61,9 @@ find_package(PAM)
find_package(Backtrace)
if(Backtrace_FOUND)
- include_directories(${Backtrace_INCLUDE_DIRS})
- target_link_libraries(${Backtrace_LIBRARIES})
+ include_directories("${Backtrace_INCLUDE_DIRS}")
add_definitions(-DSWAY_Backtrace_FOUND=1)
+ set(LINK_LIBRARIES, "${LINK_LIBRARIES} ${Backtrace_LIBRARIES}")
set(SWAY_Backtrace_HEADER "${Backtrace_HEADER}")
endif()