mirror of
https://github.com/reactos/CMake.git
synced 2024-11-24 12:09:48 +00:00
CMakeLib: Link to system thread libraries to support std::thread
Some environments require linking to thread libraries for `std::thread`. Express this direct dependency of CMakeLib explicitly. Previously this was done indirectly through our bundled libuv, but that does not work when using a system libuv. Fixes: #17757
This commit is contained in:
parent
9c1efb614d
commit
94eee5e683
@ -310,6 +310,8 @@ endmacro()
|
||||
# Simply to improve readability of the main script.
|
||||
#-----------------------------------------------------------------------
|
||||
macro (CMAKE_BUILD_UTILITIES)
|
||||
find_package(Threads)
|
||||
|
||||
#---------------------------------------------------------------------
|
||||
# Create the kwsys library for CMake.
|
||||
set(KWSYS_NAMESPACE cmsys)
|
||||
|
@ -765,6 +765,7 @@ target_link_libraries(CMakeLib cmsys
|
||||
${CMAKE_LIBUV_LIBRARIES}
|
||||
${CMAKE_LIBRHASH_LIBRARIES}
|
||||
${CMake_KWIML_LIBRARIES}
|
||||
${CMAKE_THREAD_LIBS_INIT}
|
||||
)
|
||||
|
||||
if(CMAKE_SYSTEM_NAME STREQUAL "Linux" AND CMAKE_SYSTEM_PROCESSOR MATCHES "sparc")
|
||||
|
Loading…
Reference in New Issue
Block a user