diff options
author | robotanarchy <robotanarchy@bingo-ev.de> | 2015-12-22 00:32:41 +0100 |
---|---|---|
committer | robotanarchy <robotanarchy@bingo-ev.de> | 2015-12-22 00:32:41 +0100 |
commit | 470e59b291b7c5e416f5c43bf14dedb8c379b25e (patch) | |
tree | 666437c6bf7e764753d7765ffbdda45ecfd05d9d /common | |
parent | add -fPIC flag (position independent code) like in wlc (diff) | |
download | sway-470e59b291b7c5e416f5c43bf14dedb8c379b25e.tar.gz sway-470e59b291b7c5e416f5c43bf14dedb8c379b25e.tar.zst sway-470e59b291b7c5e416f5c43bf14dedb8c379b25e.zip |
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 @@ | |||
1 | add_library(sway-common | 1 | add_library(sway-common |
2 | ${SWAY_Backtrace_HEADER} | ||
3 | ipc-client.c | 2 | ipc-client.c |
4 | list.c | 3 | list.c |
5 | log.c | 4 | log.c |
@@ -7,3 +6,10 @@ add_library(sway-common | |||
7 | readline.c | 6 | readline.c |
8 | stringop.c | 7 | stringop.c |
9 | ) | 8 | ) |
9 | |||
10 | if(Backtrace_FOUND) | ||
11 | set_target_properties(sway-common | ||
12 | PROPERTIES | ||
13 | COMPILE_FLAGS "-include ${Backtrace_HEADER}" | ||
14 | ) | ||
15 | endif() | ||