Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
opendht
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
savoirfairelinux
opendht
Commits
33303b7a
Commit
33303b7a
authored
2 years ago
by
Adrien Béraud
Browse files
Options
Downloads
Patches
Plain Diff
build/cmake: handle empty SYSTEMD_UNIT_FILE_LOCATION
parent
ac608638
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tools/CMakeLists.txt
+1
-1
1 addition, 1 deletion
tools/CMakeLists.txt
with
1 addition
and
1 deletion
tools/CMakeLists.txt
+
1
−
1
View file @
33303b7a
...
...
@@ -38,7 +38,7 @@ endif ()
install
(
TARGETS dhtnode dhtscanner dhtchat RUNTIME DESTINATION
${
CMAKE_INSTALL_BINDIR
}
)
if
(
OPENDHT_SYSTEMD
)
if
(
NOT DEFINED OPENDHT_SYSTEMD_UNIT_FILE_LOCATION
)
if
(
NOT DEFINED
OPENDHT_SYSTEMD_UNIT_FILE_LOCATION OR NOT
OPENDHT_SYSTEMD_UNIT_FILE_LOCATION
)
execute_process
(
COMMAND
${
PKG_CONFIG_EXECUTABLE
}
systemd --variable=systemdsystemunitdir
OUTPUT_VARIABLE SYSTEMD_UNIT_INSTALL_DIR
)
message
(
"-- Using Systemd unit installation directory by pkg-config: "
${
SYSTEMD_UNIT_INSTALL_DIR
}
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment