diff options
author | Sergei Golubchik <serg@mariadb.org> | 2018-07-05 14:23:23 +0200 |
---|---|---|
committer | Sergei Golubchik <serg@mariadb.org> | 2018-08-12 11:37:43 +0200 |
commit | 97b563b5dbfce9dccf5a9e8204272e26d9e414a1 (patch) | |
tree | add5dbc7a08ba4f80a646f2bd44a0c27933b087e /cmake/systemd.cmake | |
parent | 8ca2219065df5a829b9a802bbcc879b64e5cb904 (diff) | |
download | mariadb-git-97b563b5dbfce9dccf5a9e8204272e26d9e414a1.tar.gz |
less re-cmake messages
Diffstat (limited to 'cmake/systemd.cmake')
-rw-r--r-- | cmake/systemd.cmake | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/cmake/systemd.cmake b/cmake/systemd.cmake index f7365066ef6..fc36d7cefbf 100644 --- a/cmake/systemd.cmake +++ b/cmake/systemd.cmake @@ -20,10 +20,12 @@ MACRO(CHECK_SYSTEMD) SET(WITH_SYSTEMD "auto" CACHE STRING "Enable systemd scripts and notification support") IF(WITH_SYSTEMD STREQUAL "yes" OR WITH_SYSTEMD STREQUAL "auto") IF(PKG_CONFIG_FOUND) - IF(WITH_SYSTEMD STREQUAL "yes") - pkg_search_module(LIBSYSTEMD REQUIRED libsystemd libsystemd-daemon) - ELSE() - pkg_search_module(LIBSYSTEMD libsystemd libsystemd-daemon) + IF (NOT DEFINED LIBSYSTEMD_FOUND) + IF(WITH_SYSTEMD STREQUAL "yes") + pkg_search_module(LIBSYSTEMD REQUIRED libsystemd libsystemd-daemon) + ELSE() + pkg_search_module(LIBSYSTEMD libsystemd libsystemd-daemon) + ENDIF() ENDIF() IF(HAVE_DLOPEN) SET(LIBSYSTEMD ${LIBSYSTEMD_LIBRARIES}) |