From ee34af30088cbe661099e74f243b2423fb7788e9 Mon Sep 17 00:00:00 2001 From: Pim Vermeer Date: Sun, 21 Jan 2024 17:06:50 +0000 Subject: [PATCH] fix(build-linux): use older variable name in systemd query The Ubuntu 20.x uses an older systemd version. Both variable names work for all distros. --- cmake/FindSystemd.cmake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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