diff --git a/cmake/FindSystemd.cmake b/cmake/FindSystemd.cmake index 3f1d2599669..c41ca64d248 100644 --- a/cmake/FindSystemd.cmake +++ b/cmake/FindSystemd.cmake @@ -14,14 +14,14 @@ IF (NOT WIN32) if (SYSTEMD_FOUND) execute_process(COMMAND ${PKG_CONFIG_EXECUTABLE} - --variable=systemd_user_unit_dir systemd + --variable=systemduserunitdir systemd OUTPUT_VARIABLE SYSTEMD_USER_UNIT_INSTALL_DIR) string(REGEX REPLACE "[ \t\n]+" "" SYSTEMD_USER_UNIT_INSTALL_DIR "${SYSTEMD_USER_UNIT_INSTALL_DIR}") execute_process(COMMAND ${PKG_CONFIG_EXECUTABLE} - --variable=systemd_system_unit_dir systemd + --variable=systemdsystemunitdir systemd OUTPUT_VARIABLE SYSTEMD_SYSTEM_UNIT_INSTALL_DIR) string(REGEX REPLACE "[ \t\n]+" "" SYSTEMD_SYSTEM_UNIT_INSTALL_DIR