Fix build with standalone libiconv.

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit eb0fabd7da)
r14.0.x
Slávek Banko 6 years ago
parent 6a2c7f1fed
commit 3b4175ebd6
No known key found for this signature in database
GPG Key ID: 608F5293A04BE668

@ -49,3 +49,16 @@ if( LIBYAZ_FOUND )
else()
tde_message_fatal( "libyaz is required, but was not found on your system" )
endif( )
##### check for libiconv
message( STATUS "Check for standalone libiconv" )
find_library( HAVE_LIBICONV iconv )
if( HAVE_LIBICONV )
set( ICONV_LIBRARIES iconv )
message( STATUS "Check for standalone libiconv - found" )
else( )
set( ICONV_LIBRARIES "" )
message( STATUS "Check for standalone libiconv - not found" )
endif( )

@ -91,11 +91,12 @@ tde_add_kpart( libkbibtexpart AUTOMOC
tdeutils-shared
katepartinterfaces-shared
tdetexteditor
${ICONV_LIBRARIES}
${LIBXML2_LIBRARIES}
${LIBXSLT_LIBRARIES}
${LIBXSLT_EXSLT_LIBRARIES}
${LIBYAZ_LIBRARIES}
DESTINATION ${PLUGIN_INSTALL_DIR}
)

Loading…
Cancel
Save