Skip to content

Commit

Permalink
Cmake: always import the Threads target
Browse files Browse the repository at this point in the history
  • Loading branch information
ctrlaltca committed May 1, 2024
1 parent 2b4af7b commit 03fb5fb
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 03fb5fb

Please sign in to comment.