summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulien Louis <ptitlouis@sysif.net>2007-06-11 17:47:57 +0000
committerJulien Louis <ptitlouis@sysif.net>2007-06-11 17:47:57 +0000
commitc9625e1f589d011e8cd89e4e470026f5879db5a2 (patch)
treea9ffdaab70bfa44d83aad6ad81921b0d0e3f43c2
parentd604e222ea8317113db013340db9950aeb79d9d9 (diff)
downloadweechat-c9625e1f589d011e8cd89e4e470026f5879db5a2.zip
Link weechat-curses against libutf8 on OpenBSD plateform
-rw-r--r--src/gui/curses/CMakeLists.txt4
-rw-r--r--weechat/src/gui/curses/CMakeLists.txt4
2 files changed, 8 insertions, 0 deletions
diff --git a/src/gui/curses/CMakeLists.txt b/src/gui/curses/CMakeLists.txt
index 90ac69f46..749f0ef55 100644
--- a/src/gui/curses/CMakeLists.txt
+++ b/src/gui/curses/CMakeLists.txt
@@ -36,6 +36,10 @@ IF(NCURSES_FOUND)
LIST(APPEND EXTRA_LIBS ${NCURSES_LIBRARY})
ENDIF(NCURSES_FOUND)
+IF(${CMAKE_SYSTEM_NAME} MATCHES "OpenBSD")
+ LIST(APPEND EXTRA_LIBS "utf8")
+ENDIF(${CMAKE_SYSTEM_NAME} MATCHES "OpenBSD")
+
ADD_EXECUTABLE(${EXECUTABLE} ${WEECHAT_CURSES_SRC})
INCLUDE_DIRECTORIES(.. ../../common ../../irc ../../plugins)
TARGET_LINK_LIBRARIES(${EXECUTABLE} ${STATIC_LIBS} ${EXTRA_LIBS})
diff --git a/weechat/src/gui/curses/CMakeLists.txt b/weechat/src/gui/curses/CMakeLists.txt
index 90ac69f46..749f0ef55 100644
--- a/weechat/src/gui/curses/CMakeLists.txt
+++ b/weechat/src/gui/curses/CMakeLists.txt
@@ -36,6 +36,10 @@ IF(NCURSES_FOUND)
LIST(APPEND EXTRA_LIBS ${NCURSES_LIBRARY})
ENDIF(NCURSES_FOUND)
+IF(${CMAKE_SYSTEM_NAME} MATCHES "OpenBSD")
+ LIST(APPEND EXTRA_LIBS "utf8")
+ENDIF(${CMAKE_SYSTEM_NAME} MATCHES "OpenBSD")
+
ADD_EXECUTABLE(${EXECUTABLE} ${WEECHAT_CURSES_SRC})
INCLUDE_DIRECTORIES(.. ../../common ../../irc ../../plugins)
TARGET_LINK_LIBRARIES(${EXECUTABLE} ${STATIC_LIBS} ${EXTRA_LIBS})