diff options
| author | Furkan Sahin <furkan-dev@proton.me> | 2015-12-22 00:32:41 +0100 |
|---|---|---|
| committer | Furkan Sahin <furkan-dev@proton.me> | 2015-12-22 00:32:41 +0100 |
| commit | 08b4332a1505eb8792da61403216f38d8e549bbe (patch) | |
| tree | 666437c6bf7e764753d7765ffbdda45ecfd05d9d /common | |
| parent | 89addf8646dd4a5b9741e4ca64a71a5b1f4e0117 (diff) | |
fix backtrace detection in CMake
works on arch (glibc) and void linux (tested with musl libc) now
Diffstat (limited to 'common')
| -rw-r--r-- | common/CMakeLists.txt | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/common/CMakeLists.txt b/common/CMakeLists.txt index 95617e15..38767249 100644 --- a/common/CMakeLists.txt +++ b/common/CMakeLists.txt @@ -1,5 +1,4 @@ add_library(sway-common - ${SWAY_Backtrace_HEADER} ipc-client.c list.c log.c @@ -7,3 +6,10 @@ add_library(sway-common readline.c stringop.c ) + +if(Backtrace_FOUND) + set_target_properties(sway-common + PROPERTIES + COMPILE_FLAGS "-include ${Backtrace_HEADER}" + ) +endif() |
