summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2018-11-09 11:44:44 -0500
committerBrad King <brad.king@kitware.com>2018-11-09 11:44:44 -0500
commitcda0b14ec32ad3d3aa67dd12d75aa34ffb1bcd19 (patch)
tree6ea4952cb2849169ea48355d955112c05df6c566
parent8d70ed5a10362209d265a15d993f319235aea7e5 (diff)
parentbd831ed0948a1e99f573f0056f2bee5d3b21009e (diff)
downloadcmake-cda0b14ec32ad3d3aa67dd12d75aa34ffb1bcd19.tar.gz
Merge branch 'FindBoost-link-threads' into release-3.13
Merge-request: !2570
-rw-r--r--Modules/FindBoost.cmake3
1 files changed, 3 insertions, 0 deletions
diff --git a/Modules/FindBoost.cmake b/Modules/FindBoost.cmake
index e9839411f1..0794a6f6e1 100644
--- a/Modules/FindBoost.cmake
+++ b/Modules/FindBoost.cmake
@@ -2074,6 +2074,9 @@ if(Boost_FOUND)
message (STATUS " ${COMPONENT}")
endif()
list(APPEND Boost_LIBRARIES ${Boost_${UPPERCOMPONENT}_LIBRARY})
+ if(COMPONENT STREQUAL "thread")
+ list(APPEND Boost_LIBRARIES ${CMAKE_THREAD_LIBS_INIT})
+ endif()
endif()
endforeach()
else()