Skip to content

Commit

Permalink
Merge pull request #1157 from nmorey/dev/master/systemctl-fix
Browse files Browse the repository at this point in the history
cmake: Add -DSYSTEMCTL_BIN option to set path to systemctl
  • Loading branch information
rleon committed Mar 26, 2022
2 parents 3b28e0e + cc340db commit ce2f7ad
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,9 @@ else()
endif()

find_program(SYSTEMCTL_BIN systemctl HINTS "/usr/bin" "/bin")
if (NOT SYSTEMCTL_BIN)
set (SYSTEMCTL_BIN "/bin/systemctl")
endif()

RDMA_CheckSparse()

Expand Down

0 comments on commit ce2f7ad

Please sign in to comment.