MantisBT - CMake
View Issue Details
0010436CMakeModulespublic2010-03-18 06:142010-11-09 22:57
Christoph Höger 
Philip Lowman 
normalfeaturealways
closedfixed 
CMake-2-8 
CMake 2.8.3CMake 2.8.3 
0010436: add search pattern to findpackage boost
Hi,

I have recently installed boost from

http://ascendwiki.cheme.cmu.edu/Binary_installer_for_Boost_on_MinGW [^]

To this package with cmake I had to add the following line to FindBoost.cmake
(In the FIND_LIBRARY call)

${Boost_LIB_PREFIX}boost_${COMPONENT}${_boost_COMPILER}${_boost_MULTITHREADED}

(cannot create a patch, since this is windows, but it should be obvious).

Please add this pattern to the next distributed version of cmake.
No tags attached.
? FindBoost.cmake.7 (54,757) 2010-09-09 00:02
https://public.kitware.com/Bug/file/3374/FindBoost.cmake.7
Issue History
2010-03-18 06:14Christoph HögerNew Issue
2010-08-19 08:22Philip LowmanStatusnew => assigned
2010-08-19 08:22Philip LowmanAssigned To => Philip Lowman
2010-09-09 00:02Philip LowmanNote Added: 0022156
2010-09-09 00:02Philip LowmanFile Added: FindBoost.cmake.7
2010-09-09 00:04Philip LowmanNote Added: 0022157
2010-09-10 08:39Philip LowmanETAnone => < 1 day
2010-09-10 08:39Philip LowmanTarget Version => CMake 2.8.3
2010-09-12 22:29Philip LowmanNote Added: 0022199
2010-09-12 22:29Philip LowmanStatusassigned => resolved
2010-09-12 22:29Philip LowmanFixed in Version => CMake 2.8.3
2010-09-12 22:29Philip LowmanResolutionopen => fixed
2010-11-09 22:57Philip LowmanStatusresolved => closed

Notes
(0022156)
Philip Lowman   
2010-09-09 00:02   
I believe the issue is fixed. The attached version works for me against the library you specified.


set(BOOST_ROOT "C:/Program Files (x86)/Boost-1.41.0")
set(Boost_DEBUG ON)
set(Boost_NO_SYSTEM_PATHS TRUE)
set(Boost_USE_STATIC_LIBS ON)
set(Boost_USE_STATIC_RUNTIME OFF)
find_package(Boost REQUIRED thread system)
(0022157)
Philip Lowman   
2010-09-09 00:04   
By issue fixed, I mean I made the change you suggested so that it now finds the library files provided by the binary release of Boost you pointed to.

Additional testing is always welcome. Thanks for filing the ticket in either case.
(0022199)
Philip Lowman   
2010-09-12 22:29   
Fix will be in CMake 2.8.3 RC1