From 2f73648239f8990a25775238e4aa9ffb78fb7da0 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Thu, 6 Mar 2008 17:41:27 +0100 Subject: [PATCH] Add DEVELOPER options. With this option you can work with the files in the build directory. --- ConfigureChecks.cmake | 6 +++++- DefineOptions.cmake | 1 + config.h.cmake | 3 ++- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake index 6ce21ac4e..58da462a3 100644 --- a/ConfigureChecks.cmake +++ b/ConfigureChecks.cmake @@ -10,4 +10,8 @@ set(VERSION ${APPLICATION_VERSION}) set(DATADIR ${DATA_INSTALL_DIR}) set(LIBDIR ${LIB_INSTALL_DIR}) set(PLUGINDIR ${PLUGIN_INSTALL_DIR}) -set(SYSCONFDIR ${SYSCONF_INSTALL_DIR}) +if (DEVELOPER) + set(SYSCONFDIR ${CMAKE_BINARY_DIR}) +else (DEVELOPER) + set(SYSCONFDIR ${SYSCONF_INSTALL_DIR}) +endif (DEVELOPER) diff --git a/DefineOptions.cmake b/DefineOptions.cmake index 7c35da6cc..9b324d51c 100644 --- a/DefineOptions.cmake +++ b/DefineOptions.cmake @@ -1,2 +1,3 @@ option(WITH_LOG4C "Build csync without log4c" ON) option(UNIT_TESTING "Build with unit tests" OFF) +option(DEVELOPER "Build developer version" OFF) diff --git a/config.h.cmake b/config.h.cmake index b7246c462..76b0a8b61 100644 --- a/config.h.cmake +++ b/config.h.cmake @@ -4,6 +4,7 @@ #cmakedefine DATADIR "${SHARE_INSTALL_PREFIX}" #cmakedefine LIBDIR "${LIB_INSTALL_DIR}" #cmakedefine PLUGINDIR "${PLUGIN_INSTALL_DIR}" -#cmakedefine SYSCONFDIR "${SYSCONF_INSTALL_DIR}" +#cmakedefine SYSCONFDIR "${SYSCONFDIR}" #cmakedefine WITH_LOG4C 1 +#cmakedefine DEVELOPER 1