summaryrefslogtreecommitdiffstats
path: root/tdesu/CMakeLists.txt
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2013-09-08 01:31:29 +0200
committerSlávek Banko <slavek.banko@axis.cz>2013-09-08 04:54:08 +0200
commit54ebc6da596d3664170e0537e444ba6879fb2af7 (patch)
tree6d664f464b6894ac02f65103002aac59a5d05ef5 /tdesu/CMakeLists.txt
parentf123d99fd32a3eba6fc18c6c762db23fb5d431d6 (diff)
downloadtdebase-54ebc6da596d3664170e0537e444ba6879fb2af7.tar.gz
tdebase-54ebc6da596d3664170e0537e444ba6879fb2af7.zip
Fix tdesu backend check in CMake
Diffstat (limited to 'tdesu/CMakeLists.txt')
-rw-r--r--tdesu/CMakeLists.txt4
1 files changed, 4 insertions, 0 deletions
diff --git a/tdesu/CMakeLists.txt b/tdesu/CMakeLists.txt
index 1db531b46..4c33fb0d8 100644
--- a/tdesu/CMakeLists.txt
+++ b/tdesu/CMakeLists.txt
@@ -48,6 +48,10 @@ if( WITH_SUDO_TDESU_BACKEND )
else()
set( DEFAULT_SUPER_USER_COMMAND su CACHE INTERNAL "" FORCE )
endif()
+find_file( TDESU_BACKEND ${DEFAULT_SUPER_USER_COMMAND} PATHS ENV PATH )
+if( TDESU_BACKEND-NOTFOUND )
+ tde_message_fatal( "${DEFAULT_SUPER_USER_COMMAND} was chosen as tdesu backend, but was not found in path." )
+endif( TDESU_BACKEND-NOTFOUND )
add_subdirectory( tdesu )
add_subdirectory( tdesud )