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