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

View File

@ -75,6 +75,7 @@ if(WIN32)
list(APPEND LIBUV_LIBRARIES ws2_32) list(APPEND LIBUV_LIBRARIES ws2_32)
endif() endif()
find_package(Threads)
if(Threads_FOUND) if(Threads_FOUND)
# TODO: Fix the cmake file to properly handle static deps for bundled builds. # 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 # Meanwhile just include the threads library if CMake tells us there's one to