build: delete pthreads import (#21732)

We shouldn't need this as all threading should already be handled by
libuv. Furthermore, it wasn't even used correctly as
CMAKE_THREAD_PREFER_PTHREAD has been removed from cmake a long time ago.
This commit is contained in:
dundargoc 2023-01-24 10:40:18 +01:00 committed by GitHub
parent 993dc6e97e
commit 34a16209bb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -62,12 +62,6 @@ else()
target_link_libraries(main_lib INTERFACE ${LUAJIT_LIBRARIES})
endif()
# Determine platform's threading library. Set CMAKE_THREAD_PREFER_PTHREAD
# explicitly to indicate a strong preference for pthread.
set(CMAKE_THREAD_PREFER_PTHREAD ON)
find_package(Threads REQUIRED)
target_link_libraries(main_lib INTERFACE ${CMAKE_THREAD_LIBS_INIT})
option(ENABLE_IWYU "Run include-what-you-use with the compiler." OFF)
if(ENABLE_IWYU)
find_program(IWYU_PRG NAMES include-what-you-use iwyu)