From 56b3a6bc534c03acb65e5bd2d1e2df69e9f46144 Mon Sep 17 00:00:00 2001 From: Francois Andriot Date: Sat, 26 Jan 2013 19:39:20 +0100 Subject: Fix smbclient library detection --- kioslave/smb/ConfigureChecks.cmake | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'kioslave/smb/ConfigureChecks.cmake') 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 ) -- cgit v1.2.1