You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
Subject: Add -lpthread when using Boost::Thread.
|
|
|
|
Author: Kai Wasserbäch <debian@carbon-project.org>
|
|
|
|
Origin: vendor
|
|
|
|
Last-Update: 2011-01-16
|
|
|
|
Bug: http://cmake.org/Bug/view.php?id=10692
|
|
|
|
Bug-Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=563479
|
|
|
|
Forwarded: http://cmake.org/Bug/file_download.php?file_id=3629&type=bug
|
|
|
|
---
|
|
|
|
Modules/FindBoost.cmake | 3 +++
|
|
|
|
1 file changed, 3 insertions(+)
|
|
|
|
|
|
|
|
--- a/Modules/FindBoost.cmake
|
|
|
|
+++ b/Modules/FindBoost.cmake
|
|
|
|
@@ -1192,6 +1192,9 @@ else(_boost_IN_CACHE)
|
|
|
|
message (STATUS " ${COMPONENT}")
|
|
|
|
endif(NOT Boost_FIND_QUIETLY)
|
|
|
|
set(Boost_LIBRARIES ${Boost_LIBRARIES} ${Boost_${UPPERCOMPONENT}_LIBRARY})
|
|
|
|
+ if(${UPPERCOMPONENT} STREQUAL "THREAD" AND UNIX)
|
|
|
|
+ set(Boost_LIBRARIES ${Boost_LIBRARIES} pthread)
|
|
|
|
+ endif(${UPPERCOMPONENT} STREQUAL "THREAD" AND UNIX)
|
|
|
|
endif( Boost_${UPPERCOMPONENT}_FOUND )
|
|
|
|
endforeach(COMPONENT)
|
|
|
|
else()
|