1
0
mirror of https://github.com/d47081/qBittorrent.git synced 2025-01-10 23:07:59 +00: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:
Eugene Shalygin 2017-05-19 10:44:36 +02:00
parent ce36a7ca62
commit 15ef4fcc56

View File

@ -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)