kdelibs/cmake/modules/FindSudo.cmake
Ivailo Monev 31ee051ff4 generic: remove some compatibility bits
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2021-02-27 08:58:02 +02:00

19 lines
471 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 ${KDE4_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)