File sourcetrail-pull784.patch of Package sourcetrail

From c6e97ed2f604353babf9515c6d5f3dbde756351b Mon Sep 17 00:00:00 2001
From: Jochen Topf <jochen@topf.org>
Date: Fri, 22 Nov 2019 18:22:05 +0100
Subject: [PATCH] Changes to make it compile on Debian Buster

These change together with #775 makes Sourcetrail compile on Debian Buster. I haven't tested this on any other systems.
---
 CMakeLists.txt | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index d75b42c9..522e6201 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -203,6 +203,8 @@ add_subdirectory(src/test)
 
 # Lib Utility ------------------------------------------------------------------
 
+find_package(Threads REQUIRED)
+
 add_library(${LIB_UTILITY_PROJECT_NAME} ${LIB_UTILITY_FILES})
 
 create_source_groups(${LIB_UTILITY_FILES})
@@ -218,7 +220,7 @@ target_include_directories(${LIB_UTILITY_PROJECT_NAME} SYSTEM
 )
 
 if(UNIX)
-	target_link_libraries(${LIB_UTILITY_PROJECT_NAME} ${Boost_LIBRARIES} Qt5::Widgets Qt5::Network)
+	target_link_libraries(${LIB_UTILITY_PROJECT_NAME} ${Boost_LIBRARIES} Qt5::Widgets Qt5::Network ${CMAKE_DL_LIBS} rt ${CMAKE_THREAD_LIBS_INIT})
 else()
 	target_link_libraries(${LIB_UTILITY_PROJECT_NAME} ${Boost_LIBRARIES} Qt5::Widgets Qt5::Network Qt5::WinExtras)
 endif()