Fix build with standalone libiconv.

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
pull/2/head
Slávek Banko 6 years ago
parent 384422dd25
commit eb0fabd7da
No known key found for this signature in database
GPG Key ID: 608F5293A04BE668

@ -49,3 +49,16 @@ if( LIBYAZ_FOUND )
else() else()
tde_message_fatal( "libyaz is required, but was not found on your system" ) tde_message_fatal( "libyaz is required, but was not found on your system" )
endif( ) 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 tdeutils-shared
katepartinterfaces-shared katepartinterfaces-shared
tdetexteditor tdetexteditor
${ICONV_LIBRARIES}
${LIBXML2_LIBRARIES} ${LIBXML2_LIBRARIES}
${LIBXSLT_LIBRARIES} ${LIBXSLT_LIBRARIES}
${LIBXSLT_EXSLT_LIBRARIES} ${LIBXSLT_EXSLT_LIBRARIES}
${LIBYAZ_LIBRARIES} ${LIBYAZ_LIBRARIES}
DESTINATION ${PLUGIN_INSTALL_DIR} DESTINATION ${PLUGIN_INSTALL_DIR}
) )

Loading…
Cancel
Save