From cf03419fb5f9fbb5fd6bbeeba0b1cf84707f0cf9 Mon Sep 17 00:00:00 2001 From: Begasus Date: Sun, 19 Nov 2023 19:44:09 +0100 Subject: [PATCH] Haiku build fixes --- CMakeLists.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index af983590..250ec59c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -68,7 +68,7 @@ option(USE_BUNDLED_BLURHASH "Use the bundled version of blurhash." ON) include(CMakeDependentOption) set(VOIP_DEFAULT ON) -if(APPLE OR WIN32) +if(APPLE OR WIN32 OR HAIKU) set(VOIP_DEFAULT OFF) endif() option(VOIP "Whether to enable voip support. Disable this, if you don't have gstreamer." ${VOIP_DEFAULT}) @@ -914,6 +914,10 @@ if(MSVC) target_link_libraries(nheko PRIVATE ntdll) endif() +if(HAIKU) + target_link_libraries(nheko PRIVATE network) +endif() + if(QML_DEBUGGING) target_compile_definitions(nheko PRIVATE QML_DEBUGGING) endif()