diff options
author | Slávek Banko <[email protected]> | 2019-02-19 02:58:15 +0100 |
---|---|---|
committer | Slávek Banko <[email protected]> | 2019-02-19 02:58:15 +0100 |
commit | eb0fabd7da92d5147be5c86b204f6271a68e41e8 (patch) | |
tree | 0b2004bd3a7eb45d5b6a3610489deb65e8e08449 /ConfigureChecks.cmake | |
parent | 384422dd256c49b185042e2b2c639e4d665b2b71 (diff) | |
download | kbibtex-eb0fabd7da92d5147be5c86b204f6271a68e41e8.tar.gz kbibtex-eb0fabd7da92d5147be5c86b204f6271a68e41e8.zip |
Fix build with standalone libiconv.
Signed-off-by: Slávek Banko <[email protected]>
Diffstat (limited to 'ConfigureChecks.cmake')
-rw-r--r-- | ConfigureChecks.cmake | 13 |
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( ) |