tests: add link with iconv library (if found)
This fixes a compilation error on FreeBSD.v2.8-utf8proc
parent
4718112c1c
commit
ece92efd81
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue