forked from nghttp2/nghttp2
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request nghttp2#1377 from Aldrog/cmake_systemd
Support building nghttpx with systemd using cmake
- Loading branch information
Showing
3 changed files
with
28 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# - Try to find systemd | ||
# Once done this will define | ||
# SYSTEMD_FOUND - System has systemd | ||
# SYSTEMD_INCLUDE_DIRS - The systemd include directories | ||
# SYSTEMD_LIBRARIES - The libraries needed to use systemd | ||
|
||
include(FeatureSummary) | ||
set_package_properties(Systemd PROPERTIES | ||
URL "http://freedesktop.org/wiki/Software/systemd/" | ||
DESCRIPTION "System and Service Manager") | ||
|
||
find_package(PkgConfig QUIET) | ||
pkg_check_modules(PC_SYSTEMD QUIET libsystemd) | ||
find_library(SYSTEMD_LIBRARIES NAMES systemd ${PC_SYSTEMD_LIBRARY_DIRS}) | ||
find_path(SYSTEMD_INCLUDE_DIRS systemd/sd-login.h HINTS ${PC_SYSTEMD_INCLUDE_DIRS}) | ||
|
||
include(FindPackageHandleStandardArgs) | ||
find_package_handle_standard_args(SYSTEMD DEFAULT_MSG SYSTEMD_INCLUDE_DIRS SYSTEMD_LIBRARIES) | ||
mark_as_advanced(SYSTEMD_INCLUDE_DIRS SYSTEMD_LIBRARIES) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters