Merge pull request #15743 from jamessan/libuv-threads

build: Add ${CMAKE_THREAD_LIBS_INIT} to LIBUV_LIBRARIES
This commit is contained in:
James McCoy
2021-09-20 21:56:49 -04:00
committed by GitHub

View File

@@ -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