mirror of
https://bitbucket.org/smil3y/kdelibs.git
synced 2025-02-24 19:02:48 +00:00
20 lines
466 B
CMake
20 lines
466 B
CMake
![]() |
# - Try to find Sudo
|
||
|
# Once done this will define
|
||
|
#
|
||
|
# SUDO_FOUND - sudo has been found
|
||
|
# SUDO_EXECUTABLE - the sudo executable path
|
||
|
#
|
||
|
|
||
|
find_program(SUDO_EXECUTABLE NAMES sudo
|
||
|
HINTS ${BIN_INSTALL_DIR}
|
||
|
DOC "sudo -- execute a command as another user"
|
||
|
)
|
||
|
|
||
|
if(SUDO_EXECUTABLE)
|
||
|
set(SUDO_FOUND TRUE)
|
||
|
message(STATUS "Found Sudo: ${SUDO_EXECUTABLE}")
|
||
|
else(SUDO_EXECUTABLE)
|
||
|
set(SUDO_FOUND FALSE)
|
||
|
message(STATUS "Sudo not found.")
|
||
|
endif(SUDO_EXECUTABLE)
|