summaryrefslogtreecommitdiffstats
path: root/ConfigureChecks.cmake
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2019-02-19 02:58:15 +0100
committerSlávek Banko <slavek.banko@axis.cz>2019-02-19 02:58:26 +0100
commit3b4175ebd64b66bc794618e584bdf4eb70c60020 (patch)
tree1255572ebb73806072d95912c954160133c18fed /ConfigureChecks.cmake
parent6a2c7f1fed9aa44110d36b427198b6fbc9def330 (diff)
downloadkbibtex-3b4175ebd64b66bc794618e584bdf4eb70c60020.tar.gz
kbibtex-3b4175ebd64b66bc794618e584bdf4eb70c60020.zip
Fix build with standalone libiconv.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz> (cherry picked from commit eb0fabd7da92d5147be5c86b204f6271a68e41e8)
Diffstat (limited to 'ConfigureChecks.cmake')
-rw-r--r--ConfigureChecks.cmake13
1 files changed, 13 insertions, 0 deletions
diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake
index fa91474..ad8bddc 100644
--- a/ConfigureChecks.cmake
+++ b/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( )