]> git.proxmox.com Git - libgit2.git/commitdiff
CMakeLists: Add libnetwork for Haiku
authorFrançois Revol <revol@free.fr>
Sun, 22 May 2016 21:23:58 +0000 (23:23 +0200)
committerFrançois Revol <revol@free.fr>
Sun, 22 May 2016 21:24:30 +0000 (23:24 +0200)
CMakeLists.txt

index 337a26bd73142eff4d21ad532a82a2ebafe55f37..fb3be6c23d95e1a5cea92163936e2e328e797601 100644 (file)
@@ -151,6 +151,10 @@ FUNCTION(TARGET_OS_LIBRARIES target)
                TARGET_LINK_LIBRARIES(${target} socket nsl)
                LIST(APPEND LIBGIT2_PC_LIBS "-lsocket" "-lnsl")
                SET(LIBGIT2_PC_LIBS ${LIBGIT2_PC_LIBS} PARENT_SCOPE)
+       ELSEIF(CMAKE_SYSTEM_NAME MATCHES "Haiku")
+               TARGET_LINK_LIBRARIES(${target} network)
+               LIST(APPEND LIBGIT2_PC_LIBS "-lnetwork")
+               SET(LIBGIT2_PC_LIBS ${LIBGIT2_PC_LIBS} PARENT_SCOPE)
        ENDIF()
        CHECK_LIBRARY_EXISTS(rt clock_gettime "time.h" NEED_LIBRT)
        IF(NEED_LIBRT)