Fix systemd dependency check

This commit is contained in:
Guillaume Meunier
2024-08-13 14:27:52 +02:00
parent cdce82236b
commit 77b7e53ea5
+2 -2
View File
@@ -104,14 +104,14 @@ if (WIVRN_BUILD_SERVER)
endif()
if (WIVRN_USE_SYSTEMD STREQUAL "AUTO")
pkg_check_modules(SYSTEMD IMPORTED_TARGET systemd)
pkg_check_modules(SYSTEMD IMPORTED_TARGET libsystemd)
if (SYSTEMD_FOUND)
set(WIVRN_USE_SYSTEMD ON)
else()
set(WIVRN_USE_SYSTEMD OFF)
endif()
elseif (WIVRN_USE_SYSTEMD)
pkg_check_modules(SYSTEMD REQUIRED IMPORTED_TARGET systemd)
pkg_check_modules(SYSTEMD REQUIRED IMPORTED_TARGET libsystemd)
endif()
if (WIVRN_USE_PIPEWIRE STREQUAL "AUTO")