summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2012-01-16 19:19:09 +0100
committerSebastien Helleu <flashcode@flashtux.org>2012-01-16 19:19:09 +0100
commitb2dd992c0d932fb929354b56af77c9e43a15d25d (patch)
treeeea855671571b40e0fc981f908f4685f311b5e4a /src
parenta7153028b715c5625a665c117a21dd136fe621d6 (diff)
downloadweechat-b2dd992c0d932fb929354b56af77c9e43a15d25d.zip
core: add library "pthread" in cmake file for link on OpenBSD
Diffstat (limited to 'src')
-rw-r--r--src/gui/curses/CMakeLists.txt4
-rw-r--r--src/gui/gtk/CMakeLists.txt10
2 files changed, 14 insertions, 0 deletions
diff --git a/src/gui/curses/CMakeLists.txt b/src/gui/curses/CMakeLists.txt
index 7f5059556..099bec5ab 100644
--- a/src/gui/curses/CMakeLists.txt
+++ b/src/gui/curses/CMakeLists.txt
@@ -57,6 +57,10 @@ IF(${CMAKE_SYSTEM_NAME} STREQUAL "FreeBSD")
ENDIF(HAVE_BACKTRACE)
ENDIF(${CMAKE_SYSTEM_NAME} STREQUAL "FreeBSD")
+IF(${CMAKE_SYSTEM_NAME} STREQUAL "OpenBSD")
+ LIST(APPEND EXTRA_LIBS "pthread")
+ENDIF(${CMAKE_SYSTEM_NAME} STREQUAL "OpenBSD")
+
IF(ICONV_LIBRARY)
LIST(APPEND EXTRA_LIBS ${ICONV_LIBRARY})
ENDIF(ICONV_LIBRARY)
diff --git a/src/gui/gtk/CMakeLists.txt b/src/gui/gtk/CMakeLists.txt
index 073ef273a..1e764e1d1 100644
--- a/src/gui/gtk/CMakeLists.txt
+++ b/src/gui/gtk/CMakeLists.txt
@@ -46,6 +46,16 @@ IF(PKG_CONFIG_FOUND)
ENDIF(GTK2_FOUND)
ENDIF(PKG_CONFIG_FOUND)
+IF(${CMAKE_SYSTEM_NAME} STREQUAL "FreeBSD")
+ IF(HAVE_BACKTRACE)
+ LIST(APPEND EXTRA_LIBS "execinfo")
+ ENDIF(HAVE_BACKTRACE)
+ENDIF(${CMAKE_SYSTEM_NAME} STREQUAL "FreeBSD")
+
+IF(${CMAKE_SYSTEM_NAME} STREQUAL "OpenBSD")
+ LIST(APPEND EXTRA_LIBS "pthread")
+ENDIF(${CMAKE_SYSTEM_NAME} STREQUAL "OpenBSD")
+
IF(ICONV_LIBRARY)
LIST(APPEND EXTRA_LIBS ${ICONV_LIBRARY})
ENDIF(ICONV_LIBRARY)