diff options
author | Brad King <brad.king@kitware.com> | 2018-11-09 16:44:44 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2018-11-09 16:44:44 (GMT) |
commit | cda0b14ec32ad3d3aa67dd12d75aa34ffb1bcd19 (patch) | |
tree | 6ea4952cb2849169ea48355d955112c05df6c566 | |
parent | 8d70ed5a10362209d265a15d993f319235aea7e5 (diff) | |
parent | bd831ed0948a1e99f573f0056f2bee5d3b21009e (diff) | |
download | CMake-cda0b14ec32ad3d3aa67dd12d75aa34ffb1bcd19.zip CMake-cda0b14ec32ad3d3aa67dd12d75aa34ffb1bcd19.tar.gz CMake-cda0b14ec32ad3d3aa67dd12d75aa34ffb1bcd19.tar.bz2 |
Merge branch 'FindBoost-link-threads' into release-3.13
Merge-request: !2570
-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 e983941..0794a6f 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() |