summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2018-02-22 17:57:29 (GMT)
committerBrad King <brad.king@kitware.com>2018-02-22 17:59:20 (GMT)
commit94eee5e683b80e0ffd8e0c4fd3a45b03f0f37b18 (patch)
tree3deadfab4529a0be8cad86aad033ea620eb0d487 /Source
parent9c1efb614dee294cb3a1077e8a232573f309c605 (diff)
downloadCMake-94eee5e683b80e0ffd8e0c4fd3a45b03f0f37b18.zip
CMake-94eee5e683b80e0ffd8e0c4fd3a45b03f0f37b18.tar.gz
CMake-94eee5e683b80e0ffd8e0c4fd3a45b03f0f37b18.tar.bz2
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
Diffstat (limited to 'Source')
-rw-r--r--Source/CMakeLists.txt1
1 files changed, 1 insertions, 0 deletions
diff --git a/Source/CMakeLists.txt b/Source/CMakeLists.txt
index e7c0732..a0010a2 100644
--- a/Source/CMakeLists.txt
+++ b/Source/CMakeLists.txt
@@ -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")