aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordundargoc <33953936+dundargoc@users.noreply.github.com>2023-01-24 10:40:18 +0100
committerGitHub <noreply@github.com>2023-01-24 10:40:18 +0100
commit34a16209bb8fdca1007ac76eb8d02bc7a2575402 (patch)
treeed5e721a3194a3dc8c1ba584492f64be448482f5 /src
parent993dc6e97e895d2afbc2ff75c77f50db1ba810cd (diff)
downloadrneovim-34a16209bb8fdca1007ac76eb8d02bc7a2575402.tar.gz
rneovim-34a16209bb8fdca1007ac76eb8d02bc7a2575402.tar.bz2
rneovim-34a16209bb8fdca1007ac76eb8d02bc7a2575402.zip
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.
Diffstat (limited to 'src')
-rwxr-xr-xsrc/nvim/CMakeLists.txt6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/nvim/CMakeLists.txt b/src/nvim/CMakeLists.txt
index 74aba526f9..0929aeeb2a 100755
--- a/src/nvim/CMakeLists.txt
+++ b/src/nvim/CMakeLists.txt
@@ -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)