From 9b462ae4f0e5ab689adb24bd86063a97172dc454 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20C=2E=20Morency?= Date: Tue, 24 Jun 2008 16:43:16 -0700 Subject: [PATCH] added sysconfdir support --- awesomeConfig.cmake | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/awesomeConfig.cmake b/awesomeConfig.cmake index 5c38751a7..838a39050 100644 --- a/awesomeConfig.cmake +++ b/awesomeConfig.cmake @@ -194,12 +194,20 @@ endif() if(DEFINED PREFIX) set(CMAKE_INSTALL_PREFIX ${PREFIX}) endif() + +#If a sysconfdir is specified, use it instead +#of the default configuration dir. +if(DEFINED SYSCONFDIR) + set(AWESOME_ETC ${SYSCONFDIR}) +else() + set(AWESOME_ETC etc) +endif() + set(AWESOME_VERSION ${VERSION}) set(AWESOME_COMPILE_MACHINE ${CMAKE_SYSTEM_PROCESSOR}) set(AWESOME_COMPILE_HOSTNAME ${BUILDHOSTNAME}) set(AWESOME_COMPILE_BY $ENV{USER}) set(AWESOME_RELEASE ${CODENAME}) -set(AWESOME_ETC etc) set(AWESOME_SHARE share) set(AWESOME_LUA_LIB_PATH ${CMAKE_INSTALL_PREFIX}/${AWESOME_SHARE}/${PROJECT_AWE_NAME}/lib) set(AWESOME_ICON_PATH ${CMAKE_INSTALL_PREFIX}/${AWESOME_SHARE}/${PROJECT_AWE_NAME}/icons)