fix(build): call find_package(Threads) before using its variables

This commit is contained in:
James McCoy 2021-09-21 06:56:25 -04:00
parent 9cbebcb247
commit f446ab3aa3
No known key found for this signature in database
GPG Key ID: DFE691AE331BA3DB

View File

@ -75,6 +75,7 @@ if(WIN32)
list(APPEND LIBUV_LIBRARIES ws2_32)
endif()
find_package(Threads)
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