From fc636cea8077765e5f35603960bc64928269f4f0 Mon Sep 17 00:00:00 2001 From: Robert Tari Date: Tue, 4 Apr 2023 21:21:50 +0200 Subject: CMakeLists.txt: Add threads fix for old CMake --- CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index ceccb83..df0b8bb 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -37,6 +37,11 @@ else() add_definitions("-Wall") endif() +# Thread fix for old CMake + +set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -pthread") +set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -pthread") + # Check for prerequisites set(DEPS glib-2.0>=2.58 gtk+-3.0>=3.24) -- cgit v1.2.3