From 2815eb6a5a27583067f07951ce02848938e1c76e Mon Sep 17 00:00:00 2001 From: Smail <44433524+Smail@users.noreply.github.com> Date: Tue, 8 Aug 2023 05:32:24 +0200 Subject: [PATCH] Fix linking error to pthreads with MinGW --- CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 8e021dcc..3bea3710 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -31,6 +31,7 @@ endif() # Necessary for Windows if(MINGW) set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS ON) + set(NEED_PTHREAD ON) endif() # Standard CMake options