MantisBT - CMake
View Issue Details
0008094CMakeModulespublic2008-11-13 16:282009-02-23 22:41
Julien Langer 
Philip Lowman 
normalminoralways
closedunable to reproduce 
CMake-2-6 
CMake-2-6 
0008094: FindBoost doesn't find libs on MacOS X (maybe only with boost 1.37)
FindBoost.cmake doesn't find the boost libs on MacOSX. It looks for a compiler tag of "xgcc" but the libs actually only have the "gcc" compiler tag in their filename. A comment in the FindBoost.cmake script states that the "xgcc" tag was introduced in boost 1.36, so it's quite possible that it got removed again in 1.37.
It's probably a good idea if FindBoost would look for both the "xgcc" and "gcc" tags on MacOS.
No tags attached.
Issue History
2008-11-13 16:28Julien LangerNew Issue
2008-11-14 03:56Tom VercauterenNote Added: 0014106
2008-12-15 10:00Bill HoffmanStatusnew => assigned
2008-12-15 10:00Bill HoffmanAssigned To => Douglas Gregor
2009-01-18 02:44Philip LowmanNote Added: 0014600
2009-01-18 17:50Philip LowmanNote Added: 0014608
2009-01-29 00:05Philip LowmanNote Added: 0014704
2009-01-29 00:05Philip LowmanAssigned ToDouglas Gregor => Philip Lowman
2009-01-29 00:05Philip LowmanStatusassigned => resolved
2009-01-29 00:05Philip LowmanResolutionopen => unable to reproduce
2009-02-23 22:41Philip LowmanStatusresolved => closed
2009-02-23 22:41Philip LowmanFixed in Version => CMake-2-6

Notes
(0014106)
Tom Vercauteren   
2008-11-14 03:56   
This bug is related to bug 0008059:
http://www.itk.org/Bug/view.php?id=8059 [^]

Specifying the boost compiler suffix manually would allow to find boost even if the suffix is not the one expected by FindBoost.cmake.
(0014600)
Philip Lowman   
2009-01-18 02:44   
The latest FindBoost.cmake in CVS supports specifying the boost compiler suffix manually. I will look into adding support for searching both -xgcc and -gcc on MacOS.
(0014608)
Philip Lowman   
2009-01-18 17:50   
I can't easily add support for checking multiple compiler tags in the existing FindBoost.

It looks like -xgcc is the default for Darwin builds of GCC from Boost 1.36 and onward. Is it possible that you're using a non-darwin build of GCC which may account for the problem? Any additional information you can provide about your compilation environment would be helpful.
(0014704)
Philip Lowman   
2009-01-29 00:05   
Not sure what to do about this bug lacking more information. I can clearly see "-xgcc" in bjam starting in 1.36.0 which is all I have to go on (I also lack a Mac for testing). I also know next to nothing about MacOS development environments...

Please feel free to reopen with more information.

note addition of "xgcc" for Darwin case in 1.36.0

https://svn.boost.org/svn/boost/tags/release/Boost_1_35_0/tools/build/v2/tools/common.jam [^]
https://svn.boost.org/svn/boost/tags/release/Boost_1_36_0/tools/build/v2/tools/common.jam [^]
https://svn.boost.org/svn/boost/tags/release/Boost_1_37_0/tools/build/v2/tools/common.jam [^]