summaryrefslogtreecommitdiff
path: root/cmake/systemd.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'cmake/systemd.cmake')
-rw-r--r--cmake/systemd.cmake4
1 files changed, 3 insertions, 1 deletions
diff --git a/cmake/systemd.cmake b/cmake/systemd.cmake
index 3f2617131e2..692d4df9f26 100644
--- a/cmake/systemd.cmake
+++ b/cmake/systemd.cmake
@@ -76,9 +76,11 @@ MACRO(CHECK_SYSTEMD)
UNSET(HAVE_SYSTEMD_SD_NOTIFYF)
MESSAGE(STATUS "Systemd features not enabled")
IF(WITH_SYSTEMD STREQUAL "yes")
- MESSAGE(FATAL_ERROR "Requested WITH_SYSTEMD=YES however no dependencies installed/found")
+ MESSAGE(FATAL_ERROR "Requested WITH_SYSTEMD=yes however no dependencies installed/found")
ENDIF()
ENDIF()
+ ELSEIF(NOT WITH_SYSTEMD STREQUAL "no")
+ MESSAGE(FATAL_ERROR "Invalid value for WITH_SYSTEMD. Must be 'yes', 'no', or 'auto'.")
ENDIF()
ENDIF()
ENDMACRO()