summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2018-11-09 16:38:01 (GMT)
committerKitware Robot <kwrobot@kitware.com>2018-11-09 16:38:07 (GMT)
commita02712840021706cea43bd10ebf742ef38c8f710 (patch)
tree08a30099b49131aedd2ec0670fc92aad67b0ffd3 /Modules
parent65522e5e0ef95b7424714ec4d67345bf00e9b8bd (diff)
parentbd831ed0948a1e99f573f0056f2bee5d3b21009e (diff)
downloadCMake-a02712840021706cea43bd10ebf742ef38c8f710.zip
CMake-a02712840021706cea43bd10ebf742ef38c8f710.tar.gz
CMake-a02712840021706cea43bd10ebf742ef38c8f710.tar.bz2
Merge topic 'FindBoost-link-threads'
bd831ed094 FindBoost: Add system thread library to Boost_LIBRARIES Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !2570
Diffstat (limited to 'Modules')
-rw-r--r--Modules/FindBoost.cmake3
1 files changed, 3 insertions, 0 deletions
diff --git a/Modules/FindBoost.cmake b/Modules/FindBoost.cmake
index 889dbf1..8135cb6 100644
--- a/Modules/FindBoost.cmake
+++ b/Modules/FindBoost.cmake
@@ -2082,6 +2082,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()