Browse Source

Fix tdesu backend check in CMake

tags/r14.0.0
Slávek Banko 7 years ago
parent
commit
54ebc6da59
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      tdesu/CMakeLists.txt

+ 4
- 0
tdesu/CMakeLists.txt View File

@@ -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 )

Loading…
Cancel
Save