aboutsummaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2015-12-21 20:42:08 -0500
committerDrew DeVault <sir@cmpwn.com>2015-12-21 20:42:08 -0500
commit91c102a897467ff1bae345458ccf096e32e7bd15 (patch)
tree104c612d08afef1566c9b56f962641bb39c0dc1b /CMakeLists.txt
parent5a13d19d4967cd90def4c29cd5ebfbaaa43bc1da (diff)
parentc3e9ee5e43c6d7adf6d5c9b74b39a5170cfe0b02 (diff)
Merge pull request #393 from robotanarchy/musl-libc-compatibility
musl libc compatibility
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt9
1 files changed, 9 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 5cd9c67b..4c349865 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -9,6 +9,7 @@ add_definitions(-DFALLBACK_CONFIG_DIR=\"${FALLBACK_CONFIG_DIR}\")
set(CMAKE_C_FLAGS "-g")
set(CMAKE_C_STANDARD 99)
set(CMAKE_C_EXTENSIONS OFF)
+set(CMAKE_POSITION_INDEPENDENT_CODE ON)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/bin)
add_definitions(
-D_GNU_SOURCE
@@ -58,6 +59,14 @@ find_package(Pango)
find_package(GdkPixbuf)
find_package(PAM)
+find_package(Backtrace)
+if(Backtrace_FOUND)
+ 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()
+
include(FeatureSummary)
include(Manpage)