From eb0fabd7da92d5147be5c86b204f6271a68e41e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Tue, 19 Feb 2019 02:58:15 +0100 Subject: Fix build with standalone libiconv. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Slávek Banko --- ConfigureChecks.cmake | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'ConfigureChecks.cmake') 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( ) -- cgit v1.2.1