summaryrefslogtreecommitdiffstats
path: root/ConfigureChecks.cmake
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2024-10-13 14:27:27 +0200
committerSlávek Banko <slavek.banko@axis.cz>2024-10-13 14:27:27 +0200
commit9fd41cd9f4e5a7dee38d943fba01d8c5df3a6e84 (patch)
tree3ed848ebb3648505cd66c9a8985cf59a4f586e1d /ConfigureChecks.cmake
parent85780ed898d7e7a9d9deb40e44ec9446e839e555 (diff)
downloadtde-ebook-reader-9fd41cd9f4e5a7dee38d943fba01d8c5df3a6e84.tar.gz
tde-ebook-reader-9fd41cd9f4e5a7dee38d943fba01d8c5df3a6e84.zip
Add check to a standalone iconv library to solve FTBFS.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
Diffstat (limited to 'ConfigureChecks.cmake')
-rw-r--r--ConfigureChecks.cmake17
1 files changed, 17 insertions, 0 deletions
diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake
index 478f610..0faaecb 100644
--- a/ConfigureChecks.cmake
+++ b/ConfigureChecks.cmake
@@ -68,3 +68,20 @@ pkg_search_module( UNIBREAK libunibreak )
if( NOT UNIBREAK_FOUND )
tde_message_fatal( "unibreak is required, but not found on your system" )
endif( )
+
+
+##### check for standalone iconv library
+check_include_file( "iconv.h" HAVE_ICONV_H )
+if( NOT HAVE_ICONV_H )
+ tde_message_fatal( "iconv header is required, but not found on your system" )
+endif( )
+
+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( )