File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -599,11 +599,13 @@ include_directories(${SYSTEMD_INCLUDE_DIRS})
599599RDMA_DoFixup ("${SYSTEMD_FOUND} " "systemd/sd-daemon.h" )
600600
601601# https://www.freedesktop.org/software/systemd/man/latest/sysusers.d.html
602- set (SYSUSERS_DIR "" )
603- if (NOT ${CMAKE_VERSION } VERSION_LESS "3.4" )
604- pkg_check_modules (SYSTEMD_PC systemd QUIET )
605- if (SYSTEMD_PC_FOUND)
606- pkg_get_variable (SYSUSERS_DIR systemd sysusersdir )
602+ set (SYSUSERS_DIR "" CACHE PATH "Location for systemd sysusers.d files" )
603+ if ("${SYSUSERS_DIR} " STREQUAL "" )
604+ if (NOT ${CMAKE_VERSION } VERSION_LESS "3.4" )
605+ pkg_check_modules (SYSTEMD_PC systemd QUIET )
606+ if (SYSTEMD_PC_FOUND)
607+ pkg_get_variable (SYSUSERS_DIR systemd sysusersdir )
608+ endif ()
607609 endif ()
608610endif ()
609611if ("${SYSUSERS_DIR} " STREQUAL "" )
You can’t perform that action at this time.
0 commit comments