aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames McCoy <jamessan@jamessan.com>2021-09-20 21:56:49 -0400
committerGitHub <noreply@github.com>2021-09-20 21:56:49 -0400
commit21f7555277e4b19a5c6a9534b1ce784d8a0a7b1f (patch)
treefe68150289e996e4889a5bda3a3637a9400ce7a0
parent0216aed20c9f5960506155e3d722f5ee5e807720 (diff)
parent2435cf77d195df353ca20f811327f9076ab00e38 (diff)
downloadrneovim-21f7555277e4b19a5c6a9534b1ce784d8a0a7b1f.tar.gz
rneovim-21f7555277e4b19a5c6a9534b1ce784d8a0a7b1f.tar.bz2
rneovim-21f7555277e4b19a5c6a9534b1ce784d8a0a7b1f.zip
Merge pull request #15743 from jamessan/libuv-threads
build: Add ${CMAKE_THREAD_LIBS_INIT} to LIBUV_LIBRARIES
-rw-r--r--cmake/FindLibUV.cmake7
1 files changed, 7 insertions, 0 deletions
diff --git a/cmake/FindLibUV.cmake b/cmake/FindLibUV.cmake
index 951fb0435e..df3696b2e3 100644
--- a/cmake/FindLibUV.cmake
+++ b/cmake/FindLibUV.cmake
@@ -75,6 +75,13 @@ if(WIN32)
list(APPEND LIBUV_LIBRARIES ws2_32)
endif()
+if(Threads_FOUND)
+ # TODO: Fix the cmake file to properly handle static deps for bundled builds.
+ # Meanwhile just include the threads library if CMake tells us there's one to
+ # use.
+ list(APPEND LIBUV_LIBRARIES ${CMAKE_THREAD_LIBS_INIT})
+endif()
+
include(FindPackageHandleStandardArgs)
# handle the QUIETLY and REQUIRED arguments and set LIBUV_FOUND to TRUE