fix backtrace detection in CMake

works on arch (glibc) and void linux (tested with musl libc) now
This commit is contained in:
robotanarchy 2015-12-22 00:32:41 +01:00
parent 03c041dd30
commit 470e59b291
2 changed files with 9 additions and 3 deletions

View file

@ -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()