mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-19 04:49:47 -07:00
cmake: fix FindSystemd.cmake
Apparently, recent version of CMake made PkgConfig stuff scooped and we need to call find_package(PkgConfig) in FindSystemd.cmake too, the call in FindLibtorrentRasterbar.cmake, that is always used first, is not enough now.
This commit is contained in:
parent
6b91510d71
commit
1ac4458d13
1 changed files with 3 additions and 0 deletions
|
@ -3,6 +3,9 @@
|
||||||
# sets variables
|
# sets variables
|
||||||
# SYSTEMD_FOUND
|
# SYSTEMD_FOUND
|
||||||
# SYSTEMD_SERVICES_INSTALL_DIR
|
# SYSTEMD_SERVICES_INSTALL_DIR
|
||||||
|
|
||||||
|
find_package(PkgConfig QUIET REQUIRED)
|
||||||
|
|
||||||
if (NOT SYSTEMD_FOUND)
|
if (NOT SYSTEMD_FOUND)
|
||||||
pkg_check_modules(SYSTEMD "systemd")
|
pkg_check_modules(SYSTEMD "systemd")
|
||||||
endif(NOT SYSTEMD_FOUND)
|
endif(NOT SYSTEMD_FOUND)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue