diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2012-01-16 19:19:09 +0100 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2012-01-16 19:19:09 +0100 |
commit | b2dd992c0d932fb929354b56af77c9e43a15d25d (patch) | |
tree | eea855671571b40e0fc981f908f4685f311b5e4a /src | |
parent | a7153028b715c5625a665c117a21dd136fe621d6 (diff) | |
download | weechat-b2dd992c0d932fb929354b56af77c9e43a15d25d.zip |
core: add library "pthread" in cmake file for link on OpenBSD
Diffstat (limited to 'src')
-rw-r--r-- | src/gui/curses/CMakeLists.txt | 4 | ||||
-rw-r--r-- | src/gui/gtk/CMakeLists.txt | 10 |
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) |