From f24f6529627ed62b6e78ea0c9e5120c983fbad5e Mon Sep 17 00:00:00 2001 From: Nikos Ntarmos Date: Wed, 1 Apr 2009 17:56:02 +0200 Subject: [PATCH] build: prepend ${PREFIX} to SYSCONFDIR if not set (FS#468) Also fixes what seemed like a typo in the env checking for XDG_CONFIG_DIR. Signed-off-by: Julien Danjou --- awesomeConfig.cmake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/awesomeConfig.cmake b/awesomeConfig.cmake index 5637c79b3..3fd14b8d9 100644 --- a/awesomeConfig.cmake +++ b/awesomeConfig.cmake @@ -220,13 +220,13 @@ endif() if(DEFINED SYSCONFDIR) set(SYSCONFDIR ${SYSCONFDIR} CACHE PATH "config directory") else() - set(SYSCONFDIR /etc CACHE PATH "config directory") + set(SYSCONFDIR ${PREFIX}/etc CACHE PATH "config directory") endif() #If an XDG Config Dir is specificed, use it instead #of the default XDG configuration dir. if(DEFINED XDG_CONFIG_DIR) - set(XDG_CONFIG_DIR ${XDG_CONFIG_SYS} CACHE PATH "xdg config directory") + set(XDG_CONFIG_DIR ${XDG_CONFIG_DIR} CACHE PATH "xdg config directory") else() set(XDG_CONFIG_DIR ${SYSCONFDIR}/xdg CACHE PATH "xdg config directory") endif()