MantisBT - CMake
View Issue Details
0012273CMakeCMakepublic2011-06-15 04:012012-05-09 15:26
Claudio Bley 
Philip Lowman 
normalminoralways
closedfixed 
amd64linux2.6.38
CMake 2.8.3 
CMake 2.8.7 
0012273: FindBoost fails to locate thread library when Boost_THREADAPI set to win32
When cross-compiling to MS Windows, trying to use Boost.Thread with win32 thread API,
the function _Boost_PREPEND_LIST_WITH_THREADAPI fails to work:

===
-- [ /usr/share/cmake-2.8/Modules/FindBoost.cmake:902 ] Searching for THREAD_LIBRARY_RELEASE: libboost_thread_win32-mgw44-mt-1_46_1libboost_thread_win32-mgw44-mtlibboost_thread_win32-mt-1_46_1libboost_thread_win32-mtlibboost_thread_win32;libboost_thread-mgw44-mt-1_46_1;libboost_thread-mgw44-mt;libboost_thread-mt-1_46_1;libboost_thread-mt;libboost_thread
===

(note the missing ';' between library names)
===
set(Boost_THREADAPI win32)
set(Boost_DEBUG ON)
find_package(Boost 1.44 REQUIRED COMPONENTS thread)
===
patch attached.
boost, patch
diff findboost_threadapi.diff (501) 2011-06-15 04:01
https://public.kitware.com/Bug/file/3936/findboost_threadapi.diff
Issue History
2011-06-15 04:01Claudio BleyNew Issue
2011-06-15 04:01Claudio BleyFile Added: findboost_threadapi.diff
2011-10-20 07:57Claudio BleyTag Attached: patch
2011-10-20 07:57Claudio BleyTag Attached: boost
2011-10-28 07:14David ColeAssigned To => Philip Lowman
2011-10-28 07:14David ColeStatusnew => assigned
2011-10-28 07:14David ColeTarget Version => CMake 2.8.7
2011-12-19 11:15David ColeNote Added: 0028010
2011-12-19 11:15David ColeStatusassigned => resolved
2011-12-19 11:15David ColeResolutionopen => fixed
2012-05-09 15:26David ColeNote Added: 0029455
2012-05-09 15:26David ColeStatusresolved => closed

Notes
(0028010)
David Cole   
2011-12-19 11:15   
Fixed pushed to 'next':

  http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=cdf522436f6623d8a2ded55aa3192a7041c7773b [^]
(0029455)
David Cole   
2012-05-09 15:26   
Closing resolved issues that have not been updated in more than 4 months.