FALLBACK_CONFIG_DIR did not work. Fixed.

- Flag was ignored. Now it's taken into account.
- Missing trailing slashes in path now behaves properly.
This commit is contained in:
Yacine Hmito 2015-12-01 01:23:16 +01:00
parent 09feef89ee
commit f3f77f9ff1
2 changed files with 3 additions and 2 deletions

View file

@ -2,7 +2,8 @@ cmake_minimum_required(VERSION 3.1.0)
project(sway C)
set(FALLBACK_CONFIG_DIR "/etc/sway/")
set(FALLBACK_CONFIG_DIR "/etc/sway" CACHE PATH
"Fallback config directory defaults to /etc/sway")
add_definitions('-DFALLBACK_CONFIG_DIR=\"${FALLBACK_CONFIG_DIR}\"')
set(CMAKE_C_FLAGS "-g")