SDL_net: cmake: haiku needs network library

From 6a0511a36894628fca849cb7f53d56dcf9a20c24 Mon Sep 17 00:00:00 2001
From: Anonymous Maarten <[EMAIL REDACTED]>
Date: Sat, 13 Jan 2024 00:16:43 +0100
Subject: [PATCH] cmake: haiku needs network library

---
 CMakeLists.txt | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index f3fd4e6..4244b5e 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -117,6 +117,9 @@ if(WIN32)
     target_link_libraries(${sdl3_net_target_name} PRIVATE iphlpapi ws2_32)
     list(APPEND PC_LIBS -liphlpapi -lws2_32)
 endif()
+if(CMAKE_SYSTEM_NAME MATCHES "Haiku.*")
+    target_link_libraries(${sdl3_net_target_name} PRIVATE network)
+endif()
 set_target_properties(${sdl3_net_target_name} PROPERTIES
     OUTPUT_NAME "SDL3_net"
     DEFINE_SYMBOL DLL_EXPORT