From 2307f94e5b02c7cfbc39ca57eb8c9133f6b10ee5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?louiz=E2=80=99?= Date: Tue, 12 Jul 2016 11:57:01 +0200 Subject: Clean the list of options visible in non-advanced ccmake --- CMakeLists.txt | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index 06121a7..2b1736d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -80,6 +80,7 @@ if (NOT PANDOC_EXECUTABLE) message(STATUS "Pandoc not found, documentation cannot be built") endif() endif() +mark_as_advanced(PANDOC_EXECUTABLE) # Look for litesql and enable the database if found if(WITH_LITESQL) @@ -280,18 +281,22 @@ add_custom_target(PrintBuildParameters ALL configure_file(biboumi.h.cmake src/biboumi.h) +set(SYSTEMD_SERVICE_TYPE_DOCSTRING "The value used as the Type= in the systemd unit file.") +set(WATCHDOG_SEC_DOCSTRING "The value used as WatchdogSec= in the systemd unit file.") if(SYSTEMD_FOUND) - set(SYSTEMD_SERVICE_TYPE "notify") - set(WATCHDOG_SEC "20") + set(SYSTEMD_SERVICE_TYPE "notify" CACHE STRING SYSTEMD_SERVICE_TYPE_DOCSTRING) + set(WATCHDOG_SEC "20" CACHE STRING WATCHDOG_SEC_DOCSTRING) else() - set(SYSTEMD_SERVICE_TYPE "simple") - set(WATCHDOG_SEC "") + set(SYSTEMD_SERVICE_TYPE "simple" CACHE STRING SYSTEMD_SERVICE_TYPE_DOCSTRING) + set(WATCHDOG_SEC "" CACHE STRING WATCHDOG_SEC_DOCSTRING) endif() +set(SERVICE_USER_DOCSTRING "The value used as the User= in the systemd unit file.") if(NOT DEFINED SERVICE_USER) - set(SERVICE_USER "nobody") + set(SERVICE_USER "nobody" CACHE STRING SERVICE_USER_DOCSTRING) endif() +set(SERVICE_GROUP_DOCSTRING "The value used as the Group= in the systemd unit file.") if(NOT DEFINED SERVICE_GROUP) - set(SERVICE_GROUP "nobody") + set(SERVICE_GROUP "nobody" CACHE STRING SERVICE_GROUP_DOCSTRING) endif() configure_file(unit/biboumi.service.cmake biboumi.service) -- cgit v1.2.3