Commit 3809ab0eb8dbc37a62336e62b5fe211e89b3d8e9

Edward Thomson 2022-06-13T10:50:40

cmake: add `gnu` library for Haiku

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index b04339f..58e5825 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -120,8 +120,8 @@ if(CMAKE_SYSTEM_NAME MATCHES "(Solaris|SunOS)")
 endif()
 
 if(CMAKE_SYSTEM_NAME MATCHES "Haiku")
-	list(APPEND LIBGIT2_SYSTEM_LIBS network)
-	list(APPEND LIBGIT2_PC_LIBS "-lnetwork")
+	list(APPEND LIBGIT2_SYSTEM_LIBS gnu network)
+	list(APPEND LIBGIT2_PC_LIBS "-lgnu -lnetwork")
 endif()
 
 if(AMIGA)