diff options
| author | Mavridis Philippe <mavridisf@gmail.com> | 2022-06-24 14:28:04 +0300 |
|---|---|---|
| committer | Mavridis Philippe <mavridisf@gmail.com> | 2022-07-15 13:21:02 +0300 |
| commit | b7c36c8ea3660ffbb24c1b52dcdca797efe8802b (patch) | |
| tree | 18c14c04e57fbae3521cccd8319486481698a938 /ConfigureChecks.cmake | |
| parent | 6b64de55fbb2eb2f7ccd33bfe8f5df333ed9d8ba (diff) | |
| download | tdebase-b7c36c8e.tar.gz tdebase-b7c36c8e.zip | |
SFTP: Various fixes and improvements
For details see PR #279.
Portions of code borrowed from KDE5 SFTP ioslave:
Source: https://invent.kde.org/network/kio-extras/-/blob/master/sftp/kio_sftp.cpp
Licence: LGPLv2 or later
Signed-off-by: Mavridis Philippe <mavridisf@gmail.com>
(cherry picked from commit 7f277bc5e1504110b80bdef6da99d21ba4ea2a8c)
Diffstat (limited to 'ConfigureChecks.cmake')
| -rw-r--r-- | ConfigureChecks.cmake | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake index 93a15724e..d32996ffe 100644 --- a/ConfigureChecks.cmake +++ b/ConfigureChecks.cmake @@ -89,11 +89,19 @@ endif( ) # sys/time.h (tdeioslave/sftp, ksmserver, ksplashml) -if( BUILD_KSMSERVER OR BUILD_KSPLASHML OR BUILD_TDEIOSLAVES) +if( BUILD_KSMSERVER OR BUILD_KSPLASHML OR BUILD_TDEIOSLAVES ) check_include_file( sys/time.h HAVE_SYS_TIME_H ) check_include_files( "sys/time.h;time.h" TIME_WITH_SYS_TIME ) endif( ) +# libssh (tdeioslave/sftp) +if( BUILD_TDEIOSLAVES ) + pkg_search_module( LIBSSH libssh ) + if( NOT LIBSSH_FOUND ) + tde_message_fatal( "LibSSH is required, but was not found on your system" ) + endif( ) +endif( ) + # pam if( WITH_PAM AND (BUILD_KCHECKPASS OR BUILD_TDM) ) |
