diff options
author | Brad King <brad.king@kitware.com> | 2018-11-09 16:38:01 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2018-11-09 16:38:07 (GMT) |
commit | a02712840021706cea43bd10ebf742ef38c8f710 (patch) | |
tree | 08a30099b49131aedd2ec0670fc92aad67b0ffd3 /Modules | |
parent | 65522e5e0ef95b7424714ec4d67345bf00e9b8bd (diff) | |
parent | bd831ed0948a1e99f573f0056f2bee5d3b21009e (diff) | |
download | CMake-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.cmake | 3 |
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() |