Browse Source

Fix build with standalone libiconv.

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
pull/2/head
Slávek Banko 3 years ago
parent
commit
eb0fabd7da
No known key found for this signature in database
GPG Key ID: 608F5293A04BE668
  1. 13
      ConfigureChecks.cmake
  2. 3
      src/CMakeLists.txt

13
ConfigureChecks.cmake

@ -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( )

3
src/CMakeLists.txt

@ -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