From 03fb5fb50800d1a49412663fd55c9a0085282ba7 Mon Sep 17 00:00:00 2001 From: Fabio Bas Date: Wed, 1 May 2024 18:07:10 +0200 Subject: [PATCH] Cmake: always import the Threads target --- CMakeLists.txt | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 7b8807cdd..d5b9b0bbd 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -379,9 +379,7 @@ if(CMAKE_USE_WIN32_THREADS_INIT OR CMAKE_USE_PTHREADS_INIT) set(CMAKE_STATUS_THREADS_SUPPORT "Win32") list(APPEND CMAKE_KVIRC_BUILD_FLAGS Threads=Win32) else() - if(CMAKE_HAVE_THREADS_LIBRARY) - list(APPEND LIBS Threads::Threads) - endif() + list(APPEND LIBS Threads::Threads) set(COMPILE_THREADS_USE_POSIX 1) list(APPEND CMAKE_KVIRC_BUILD_FLAGS Threads=POSIX) if(WANT_IGNORE_SIGALARM)