Fix build with smbclient in a samba specific directory

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit 50d21388fb)
pull/182/head
Slávek Banko 7 years ago
parent e51435e449
commit cd36da2076

@ -21,6 +21,7 @@ include_directories(
link_directories(
${TQT_LIBRARY_DIRS}
${SMBCLIENT_LIBRARY_DIRS}
)

@ -18,7 +18,7 @@ endif( )
if( HAVE_LIBSMBCLIENT_H )
set( SMBCLIENT_LIBRARIES smbclient )
check_library_exists( ${SMBCLIENT_LIBRARIES} smbc_new_context "" HAVE_SMBCLIENT )
check_library_exists( ${SMBCLIENT_LIBRARIES} smbc_new_context "${SMBCLIENT_LIBRARY_DIRS}" HAVE_SMBCLIENT )
endif( )
if( NOT HAVE_LIBSMBCLIENT_H OR NOT HAVE_SMBCLIENT )

Loading…
Cancel
Save