Commit 2307f94e authored by louiz’'s avatar louiz’

Clean the list of options visible in non-advanced ccmake

parent f212b478
...@@ -80,6 +80,7 @@ if (NOT PANDOC_EXECUTABLE) ...@@ -80,6 +80,7 @@ if (NOT PANDOC_EXECUTABLE)
message(STATUS "Pandoc not found, documentation cannot be built") message(STATUS "Pandoc not found, documentation cannot be built")
endif() endif()
endif() endif()
mark_as_advanced(PANDOC_EXECUTABLE)
# Look for litesql and enable the database if found # Look for litesql and enable the database if found
if(WITH_LITESQL) if(WITH_LITESQL)
...@@ -280,18 +281,22 @@ add_custom_target(PrintBuildParameters ALL ...@@ -280,18 +281,22 @@ add_custom_target(PrintBuildParameters ALL
configure_file(biboumi.h.cmake src/biboumi.h) 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) if(SYSTEMD_FOUND)
set(SYSTEMD_SERVICE_TYPE "notify") set(SYSTEMD_SERVICE_TYPE "notify" CACHE STRING SYSTEMD_SERVICE_TYPE_DOCSTRING)
set(WATCHDOG_SEC "20") set(WATCHDOG_SEC "20" CACHE STRING WATCHDOG_SEC_DOCSTRING)
else() else()
set(SYSTEMD_SERVICE_TYPE "simple") set(SYSTEMD_SERVICE_TYPE "simple" CACHE STRING SYSTEMD_SERVICE_TYPE_DOCSTRING)
set(WATCHDOG_SEC "") set(WATCHDOG_SEC "" CACHE STRING WATCHDOG_SEC_DOCSTRING)
endif() endif()
set(SERVICE_USER_DOCSTRING "The value used as the User= in the systemd unit file.")
if(NOT DEFINED SERVICE_USER) if(NOT DEFINED SERVICE_USER)
set(SERVICE_USER "nobody") set(SERVICE_USER "nobody" CACHE STRING SERVICE_USER_DOCSTRING)
endif() endif()
set(SERVICE_GROUP_DOCSTRING "The value used as the Group= in the systemd unit file.")
if(NOT DEFINED SERVICE_GROUP) if(NOT DEFINED SERVICE_GROUP)
set(SERVICE_GROUP "nobody") set(SERVICE_GROUP "nobody" CACHE STRING SERVICE_GROUP_DOCSTRING)
endif() endif()
configure_file(unit/biboumi.service.cmake biboumi.service) configure_file(unit/biboumi.service.cmake biboumi.service)
......
...@@ -36,6 +36,7 @@ foreach(DB_TYPE sqlite postgresql mysql ocilib) ...@@ -36,6 +36,7 @@ foreach(DB_TYPE sqlite postgresql mysql ocilib)
if(LITESQL_${DB_TYPE_UPPER}_LIB_PATH) if(LITESQL_${DB_TYPE_UPPER}_LIB_PATH)
list(APPEND LITESQL_LIBRARIES ${LITESQL_${DB_TYPE_UPPER}_LIB_PATH}) list(APPEND LITESQL_LIBRARIES ${LITESQL_${DB_TYPE_UPPER}_LIB_PATH})
endif() endif()
mark_as_advanced(LITESQL_${DB_TYPE_UPPER}_LIB_PATH)
endforeach() endforeach()
find_program(LITESQLGEN_EXECUTABLE NAMES litesql-gen find_program(LITESQLGEN_EXECUTABLE NAMES litesql-gen
...@@ -53,7 +54,7 @@ if(LITESQL_FOUND) ...@@ -53,7 +54,7 @@ if(LITESQL_FOUND)
set(LITESQL_LIBRARY ${LITESQL_LIBRARIES}) set(LITESQL_LIBRARY ${LITESQL_LIBRARIES})
endif() endif()
mark_as_advanced(LITESQL_INCLUDE_DIRS LITESQL_LIBRARIES) mark_as_advanced(LITESQL_INCLUDE_DIRS LITESQL_LIBRARIES LITESQLGEN_EXECUTABLE)
# LITESQL_GENERATE_CPP function # LITESQL_GENERATE_CPP function
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment