summaryrefslogtreecommitdiff
path: root/cmake/Modules/FindSYSTEMD.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'cmake/Modules/FindSYSTEMD.cmake')
-rw-r--r--cmake/Modules/FindSYSTEMD.cmake4
1 files changed, 3 insertions, 1 deletions
diff --git a/cmake/Modules/FindSYSTEMD.cmake b/cmake/Modules/FindSYSTEMD.cmake
index 899d07a..2d3f063 100644
--- a/cmake/Modules/FindSYSTEMD.cmake
+++ b/cmake/Modules/FindSYSTEMD.cmake
@@ -16,7 +16,9 @@
# This file is in the public domain
include(FindPkgConfig)
-pkg_check_modules(SYSTEMD libsystemd)
+if(NOT SYSTEMD_FOUND)
+ pkg_check_modules(SYSTEMD libsystemd)
+endif()
if(NOT SYSTEMD_FOUND)
find_path(SYSTEMD_INCLUDE_DIRS NAMES systemd/sd-daemon.h