Fix systemd dependency check
This commit is contained in:
+2
-2
@@ -104,14 +104,14 @@ if (WIVRN_BUILD_SERVER)
|
|||||||
endif()
|
endif()
|
||||||
|
|
||||||
if (WIVRN_USE_SYSTEMD STREQUAL "AUTO")
|
if (WIVRN_USE_SYSTEMD STREQUAL "AUTO")
|
||||||
pkg_check_modules(SYSTEMD IMPORTED_TARGET systemd)
|
pkg_check_modules(SYSTEMD IMPORTED_TARGET libsystemd)
|
||||||
if (SYSTEMD_FOUND)
|
if (SYSTEMD_FOUND)
|
||||||
set(WIVRN_USE_SYSTEMD ON)
|
set(WIVRN_USE_SYSTEMD ON)
|
||||||
else()
|
else()
|
||||||
set(WIVRN_USE_SYSTEMD OFF)
|
set(WIVRN_USE_SYSTEMD OFF)
|
||||||
endif()
|
endif()
|
||||||
elseif (WIVRN_USE_SYSTEMD)
|
elseif (WIVRN_USE_SYSTEMD)
|
||||||
pkg_check_modules(SYSTEMD REQUIRED IMPORTED_TARGET systemd)
|
pkg_check_modules(SYSTEMD REQUIRED IMPORTED_TARGET libsystemd)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if (WIVRN_USE_PIPEWIRE STREQUAL "AUTO")
|
if (WIVRN_USE_PIPEWIRE STREQUAL "AUTO")
|
||||||
|
|||||||
Reference in New Issue
Block a user