CMakeLists.txt: make this build in OpenBSD

This commit is contained in:
Přemysl Eric Janouch 2020-10-29 15:53:04 +01:00
parent 42d2bef93a
commit f7912a8ce7
Signed by: p
GPG Key ID: A0420B94F92B9493
1 changed files with 6 additions and 0 deletions

View File

@ -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})