MantisBT - CMake
View Issue Details
0008059CMakeModulespublic2008-11-07 12:472009-02-23 22:54
Tom Vercauteren 
Philip Lowman 
normalminoralways
closedfixed 
CMake-2-6 
CMake-2-6 
0008059: FindBoost several issues 1)boost 1.37 2)gcc version with distcc 3) Manual specification of boost compiler
Using FindBoost.cmake Revision 1.4.2.8 with cmake 2.6.1 fails to find boost 1.37 for several reasons on my system.

1) Boost 1.37 is not in the list of supported boost version

2) I am using "distcc g++-41" as a cmake compiler. The default compiler on my system is "g++" version 4.2. FindBoost consider the boost compiler suffix to be "-gcc42" instead of "-gcc41"

3) In some cases it might be interesting to specify the boost compiler suffix manually. For example if boost was compiled with gcc 4.2 but the current project is compiled with gcc 4.1.
The attached modified FindBoost.cmake fixes these issues.
No tags attached.
? FindBoost.cmake (31,141) 2008-11-07 12:47
https://public.kitware.com/Bug/file/1835/FindBoost.cmake
Issue History
2008-11-07 12:47Tom VercauterenNew Issue
2008-11-07 12:47Tom VercauterenFile Added: FindBoost.cmake
2009-01-07 14:25Bill HoffmanStatusnew => assigned
2009-01-07 14:25Bill HoffmanAssigned To => Douglas Gregor
2009-01-15 01:23Philip LowmanNote Added: 0014557
2009-01-15 01:29Philip LowmanNote Added: 0014558
2009-01-15 19:56Philip LowmanAssigned ToDouglas Gregor => Philip Lowman
2009-01-15 19:56Philip LowmanStatusassigned => resolved
2009-01-15 19:56Philip LowmanResolutionopen => fixed
2009-02-23 22:54Philip LowmanNote Added: 0015319
2009-02-23 22:54Philip LowmanStatusresolved => closed
2009-02-23 22:54Philip LowmanFixed in Version => CMake-2-6

Notes
(0014557)
Philip Lowman   
2009-01-15 01:23   
Tom,

Thanks for the patch. I changed your BOOST_COMPILER to Boost_COMPILER to be in line with everything else in the module. The rest of it looked good. Also in this commit is support for Boost_DEBUG.

lowman@locke:~/cvs/CMake_write/Modules$ cvs commit FindBoost.cmake
Committer: Philip Lowman <philip@yhbt.com>
/cvsroot/CMake/CMake/Modules/FindBoost.cmake,v <-- FindBoost.cmake
new revision: 1.16; previous revision: 1.15
(0014558)
Philip Lowman   
2009-01-15 01:29   
Also, in testing I did uncover an issue with auto detection of Boost_COMPILER failing if you set CC and CXX to have three commands in it (e.g. CC="ccache distcc gcc"). It's a CMake bug, however and nothing wrong with your patch. I'll file a separate bug report for it.
(0015319)
Philip Lowman   
2009-02-23 22:54   
Fix available in 2.6.3
Thanks for the patch