From e2feea76575691d2ecfc4284d64b08b4bb6f2896 Mon Sep 17 00:00:00 2001 From: Andy Green Date: Tue, 16 Mar 2021 20:51:31 +0000 Subject: [PATCH] openbsd: fix up ctest --- .sai.json | 6 +++--- lib/CMakeLists.txt | 1 + 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.sai.json b/.sai.json index 26a2de8a2..7ec915220 100644 --- a/.sai.json +++ b/.sai.json @@ -233,11 +233,11 @@ "cmake": "-DLWS_WITH_NETWORK=0" }, "libev": { - "cmake": "-DLWS_WITH_LIBEV=ON" + "cmake": "-DLWS_WITH_LIBEV=ON", + "platforms": "openbsd/x86_64-amd/llvm" }, "libevent": { - "cmake": "-DLWS_WITH_LIBEVENT=ON", - "platforms": "openbsd/x86_64-amd/llvm" + "cmake": "-DLWS_WITH_LIBEVENT=ON" }, "libglib": { "cmake": "-DLWS_WITH_GLIB=ON" diff --git a/lib/CMakeLists.txt b/lib/CMakeLists.txt index 53c67c56f..5494341ec 100644 --- a/lib/CMakeLists.txt +++ b/lib/CMakeLists.txt @@ -199,6 +199,7 @@ if (LWS_WITH_SHARED) if (UNIX AND LWS_WITH_PLUGINS_API) set (CMAKE_POSITION_INDEPENDENT_CODE ON) if (NOT((${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD") OR + (${CMAKE_SYSTEM_NAME} MATCHES "OpenBSD") OR (${CMAKE_SYSTEM_NAME} MATCHES "QNX"))) if (LWS_WITH_SHARED) target_link_libraries(websockets_shared dl)