Skip to content

Commit

Permalink
disallow invalid values for WITH_SYSTEMD cmake variable.
Browse files Browse the repository at this point in the history
  • Loading branch information
vuvova committed Aug 8, 2017
1 parent e95d65d commit 1093c0f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cmake/systemd.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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()

0 comments on commit 1093c0f

Please sign in to comment.