summaryrefslogtreecommitdiffstats
path: root/kioslave/smb/ConfigureChecks.cmake
diff options
context:
space:
mode:
authorFrancois Andriot <francois.andriot@free.fr>2013-01-26 19:39:20 +0100
committerSlávek Banko <slavek.banko@axis.cz>2013-01-26 19:39:20 +0100
commit56b3a6bc534c03acb65e5bd2d1e2df69e9f46144 (patch)
tree76bd3f22cb28774650be91291f63c3c05efc8e92 /kioslave/smb/ConfigureChecks.cmake
parent1a9478c6e1b77b05814af8fa02cd563a5da8946b (diff)
downloadtdebase-56b3a6bc534c03acb65e5bd2d1e2df69e9f46144.tar.gz
tdebase-56b3a6bc534c03acb65e5bd2d1e2df69e9f46144.zip
Fix smbclient library detection
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 )