-
-
Notifications
You must be signed in to change notification settings - Fork 604
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This commit allows for btop to log to either syslog(3) or systemd's journal
- Loading branch information
Showing
6 changed files
with
157 additions
and
23 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
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,26 @@ | ||
# SPDX-License-Identifier: Apache-2.0 | ||
# | ||
# Find libSystemd, the Kernel Data Access Library | ||
# | ||
|
||
if(CMAKE_SYSTEM_NAME STREQUAL "Linux") | ||
find_path(Systemd_INCLUDE_DIR NAMES systemd/sd-journal.h) | ||
find_library(Systemd_LIBRARY NAMES systemd) | ||
|
||
include(FindPackageHandleStandardArgs) | ||
find_package_handle_standard_args(Systemd REQUIRED_VARS Systemd_LIBRARY Systemd_INCLUDE_DIR) | ||
|
||
if(Systemd_FOUND AND NOT TARGET Systemd::Systemd) | ||
add_library(Systemd::Systemd UNKNOWN IMPORTED) | ||
set_target_properties(Systemd::Systemd PROPERTIES | ||
IMPORTED_LOCATION "${Systemd_LIBRARY}" | ||
) | ||
endif() | ||
|
||
if(Systemd_FOUND AND NOT TARGET Systemd::Journald) | ||
add_library(Systemd::Journald ALIAS Systemd::Systemd) | ||
endif() | ||
|
||
mark_as_advanced(Systemd_INCLUDE_DIR Systemd_LIBRARY) | ||
endif() | ||
|
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