aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPřemysl Eric Janouch <p@janouch.name>2020-10-29 15:53:04 +0100
committerPřemysl Eric Janouch <p@janouch.name>2020-10-29 15:53:04 +0100
commitf7912a8ce7bbf7f701b5217bbb3879b13b66cfe7 (patch)
tree0b6ade4e9ae528dbcf8cee10ae55cf52f6d4376b
parent42d2bef93a89c4234676996d9c5d7ff9d0c084a6 (diff)
downloadtermo-f7912a8ce7bbf7f701b5217bbb3879b13b66cfe7.tar.gz
termo-f7912a8ce7bbf7f701b5217bbb3879b13b66cfe7.tar.xz
termo-f7912a8ce7bbf7f701b5217bbb3879b13b66cfe7.zip
CMakeLists.txt: make this build in OpenBSD
-rw-r--r--CMakeLists.txt6
1 files changed, 6 insertions, 0 deletions
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})