From f7912a8ce7bbf7f701b5217bbb3879b13b66cfe7 Mon Sep 17 00:00:00 2001 From: Přemysl Eric Janouch
Date: Thu, 29 Oct 2020 15:53:04 +0100 Subject: CMakeLists.txt: make this build in OpenBSD --- CMakeLists.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 43165a1..79ce392 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -60,6 +60,12 @@ else () message (SEND_ERROR "Unibilium not found, Curses not found") endif () +# -liconv may or may not be a part of libc +find_library (iconv_LIBRARIES iconv) +if (iconv_LIBRARIES) + list (APPEND lib_libraries ${iconv_LIBRARIES}) +endif () + # Create the library targets add_library (termo SHARED ${lib_sources} ${lib_headers}) target_link_libraries (termo ${lib_libraries}) -- cgit v1.2.3-70-g09d2