diff options
author | Yacine Hmito <yacine.hmito@gmail.com> | 2015-12-01 01:23:16 +0100 |
---|---|---|
committer | Yacine Hmito <yacine.hmito@gmail.com> | 2015-12-01 19:41:44 +0100 |
commit | f3f77f9ff1912a2b05304ba8a5278f42e16b6c1b (patch) | |
tree | dc64bfc3a3fe77cf607c2251f61caa3cb6cdc4a1 /CMakeLists.txt | |
parent | Can customize config fallback directory (diff) | |
download | sway-f3f77f9ff1912a2b05304ba8a5278f42e16b6c1b.tar.gz sway-f3f77f9ff1912a2b05304ba8a5278f42e16b6c1b.tar.zst sway-f3f77f9ff1912a2b05304ba8a5278f42e16b6c1b.zip |
FALLBACK_CONFIG_DIR did not work. Fixed.
- Flag was ignored. Now it's taken into account.
- Missing trailing slashes in path now behaves properly.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 9e1e1dde..68dd7fa3 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt | |||
@@ -2,7 +2,8 @@ cmake_minimum_required(VERSION 3.1.0) | |||
2 | 2 | ||
3 | project(sway C) | 3 | project(sway C) |
4 | 4 | ||
5 | set(FALLBACK_CONFIG_DIR "/etc/sway/") | 5 | set(FALLBACK_CONFIG_DIR "/etc/sway" CACHE PATH |
6 | "Fallback config directory defaults to /etc/sway") | ||
6 | add_definitions('-DFALLBACK_CONFIG_DIR=\"${FALLBACK_CONFIG_DIR}\"') | 7 | add_definitions('-DFALLBACK_CONFIG_DIR=\"${FALLBACK_CONFIG_DIR}\"') |
7 | 8 | ||
8 | set(CMAKE_C_FLAGS "-g") | 9 | set(CMAKE_C_FLAGS "-g") |