tests: add link with iconv library (if found)

This fixes a compilation error on FreeBSD.
v2.8-utf8proc
Sébastien Helleu 2019-04-20 10:15:01 +02:00
parent 4718112c1c
commit ece92efd81
2 changed files with 5 additions and 0 deletions

View File

@ -58,6 +58,7 @@ Build::
* core: add CMake option "ENABLE_CODE_COVERAGE" to compile with code coverage options (CMake ≥ 3.0 is now required)
* core: fix compilation on Mac OS (issue #1308)
* lua: add detection of Lua 5.3 with autotools
* tests: fix compilation of tests on FreeBSD
[[v2.4]]
== Version 2.4 (2019-02-17)

View File

@ -50,6 +50,10 @@ set(LIB_WEECHAT_UNIT_TESTS_PLUGINS_SRC
)
add_library(weechat_unit_tests_plugins MODULE ${LIB_WEECHAT_UNIT_TESTS_PLUGINS_SRC})
if(ICONV_LIBRARY)
list(APPEND EXTRA_LIBS ${ICONV_LIBRARY})
endif()
if(${CMAKE_SYSTEM_NAME} STREQUAL "FreeBSD")
list(APPEND EXTRA_LIBS "intl")
if(HAVE_BACKTRACE)