From 54ebc6da596d3664170e0537e444ba6879fb2af7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Sun, 8 Sep 2013 01:31:29 +0200 Subject: Fix tdesu backend check in CMake --- tdesu/CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tdesu') 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 ) -- cgit v1.2.1