From b75aa8d36bc5d05c6abdc86b17869761278c5f01 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Zolt=C3=A1n=20Mizsei?= <zmizsei@extrowerk.com>
Date: Mon, 20 Aug 2018 21:12:59 +0200
Subject: Build fix


diff --git a/Mongoose/CMakeLists.txt b/Mongoose/CMakeLists.txt
index 6b7e88f..a42ae61 100644
--- a/Mongoose/CMakeLists.txt
+++ b/Mongoose/CMakeLists.txt
@@ -219,7 +219,7 @@ if (EXISTS ${SUITESPARSE_CONFIG_LIBRARY})
     target_link_libraries(mongoose_lib ${SUITESPARSE_CONFIG_LIBRARY})
 endif ()
 
-if (UNIX AND NOT APPLE)
+if (UNIX AND NOT APPLE AND NOT HAIKU)
     target_link_libraries(mongoose_lib rt)
 endif ()
 
@@ -247,7 +247,7 @@ endif ()
 set_target_properties(mongoose_dylib PROPERTIES PUBLIC_HEADER Include/Mongoose.hpp)
 target_include_directories(mongoose_dylib PRIVATE .)
 
-if (UNIX AND NOT APPLE)
+if (UNIX AND NOT APPLE AND NOT HAIKU)
     target_link_libraries(mongoose_dylib rt)
 endif ()
 
@@ -266,7 +266,7 @@ if (EXISTS ${SUITESPARSE_CONFIG_LIBRARY})
     target_link_libraries(mongoose_lib_dbg ${SUITESPARSE_CONFIG_LIBRARY})
 endif ()
 
-if (UNIX AND NOT APPLE)
+if (UNIX AND NOT APPLE AND NOT HAIKU)
     target_link_libraries(mongoose_lib_dbg rt)
 endif ()
 
-- 
2.16.4


From d72a1237ceb0cb2c4b426d822711c61d704318d7 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Zolt=C3=A1n=20Mizsei?= <zmizsei@extrowerk.com>
Date: Tue, 21 Aug 2018 22:25:08 +0200
Subject: Build fix


diff --git a/metis-5.1.0/libmetis/CMakeLists.txt b/metis-5.1.0/libmetis/CMakeLists.txt
index 120e94d..b38917c 100644
--- a/metis-5.1.0/libmetis/CMakeLists.txt
+++ b/metis-5.1.0/libmetis/CMakeLists.txt
@@ -8,6 +8,10 @@ if(UNIX)
   target_link_libraries(metis m)
 endif()
 
+if(HAIKU)
+  target_link_libraries(metis execinfo)
+endif()
+
 if(METIS_INSTALL)
   install(TARGETS metis
     LIBRARY DESTINATION lib
-- 
2.16.4

