summaryrefslogtreecommitdiffstats
path: root/kioslave/smb/ConfigureChecks.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'kioslave/smb/ConfigureChecks.cmake')
-rw-r--r--kioslave/smb/ConfigureChecks.cmake7
1 files changed, 6 insertions, 1 deletions
diff --git a/kioslave/smb/ConfigureChecks.cmake b/kioslave/smb/ConfigureChecks.cmake
index 878682394..da4d1a942 100644
--- a/kioslave/smb/ConfigureChecks.cmake
+++ b/kioslave/smb/ConfigureChecks.cmake
@@ -9,7 +9,12 @@
#
#################################################
-check_include_file( libsmbclient.h HAVE_LIBSMBCLIENT_H )
+pkg_search_module ( SMBCLIENT smbclient )
+if( SMBCLIENT_FOUND )
+ set( HAVE_LIBSMBCLIENT_H 1 )
+else( )
+ check_include_file( libsmbclient.h HAVE_LIBSMBCLIENT_H )
+endif( )
if( HAVE_LIBSMBCLIENT_H )
set( SMBCLIENT_LIBRARIES smbclient )