Jelajahi Sumber

Merge branch 'FindBoost-link-threads' into release-3.13

Merge-request: !2570
Brad King 7 tahun lalu
induk
melakukan
cda0b14ec3
1 mengubah file dengan 3 tambahan dan 0 penghapusan
  1. 3 0
      Modules/FindBoost.cmake

+ 3 - 0
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()