MantisBT - CMake
View Issue Details
0011363CMakeCMakepublic2010-10-26 10:422011-03-10 14:41
Nils Gladitz 
Philip Lowman 
normalminoralways
closedfixed 
CMake-2-8 
CMake 2.8.4CMake 2.8.4 
0011363: FindBoost.cmake fails to find debug libraries in tagged layout boost installation
I did a --layout=tagged build of Boost 1.42.0 on windows.
The resulting installed libraries are named like this:

libboost_filesystem-mt.lib
libboost_filesystem-mt-gd.lib

FindBoost.cmake picks up libboost_filesystem-mt.lib for both debug and release.

To properly detect the debug library the following name seems to be missing from the list of possible debug names:
${Boost_LIB_PREFIX}boost_${COMPONENT}${_boost_MULTITHREADED}${_boost_DEBUG_ABI_TAG}
No tags attached.
diff FindBoost_tagged.diff (835) 2010-10-28 02:39
https://public.kitware.com/Bug/file/3471/FindBoost_tagged.diff
Issue History
2010-10-26 10:42Nils GladitzNew Issue
2010-10-26 20:29Philip LowmanStatusnew => assigned
2010-10-26 20:29Philip LowmanAssigned To => Philip Lowman
2010-10-26 20:31Philip LowmanNote Added: 0022713
2010-10-27 03:48Nils GladitzNote Added: 0022714
2010-10-28 02:39Nils GladitzFile Added: FindBoost_tagged.diff
2010-10-28 02:41Nils GladitzNote Added: 0022725
2010-10-28 22:58Philip LowmanNote Added: 0022740
2010-11-09 21:14Philip LowmanTarget Version => CMake 2.8.4
2010-11-09 21:15Philip LowmanNote Added: 0023115
2010-11-09 21:15Philip LowmanStatusassigned => resolved
2010-11-09 21:15Philip LowmanFixed in Version => CMake 2.8.4
2010-11-09 21:15Philip LowmanResolutionopen => fixed
2011-03-10 14:41David ColeNote Added: 0025733
2011-03-10 14:41David ColeStatusresolved => closed

Notes
(0022713)
Philip Lowman   
2010-10-26 20:31   
I believe the FindBoost included with CMake 2.8.3 RC3 resolves this issue.
http://www.cmake.org/files/v2.8/?C=M;O=D [^]

Could you give it a try and let me know if it still isn't working for you?
(0022714)
Nils Gladitz   
2010-10-27 03:48   
I'm not currently at work to test this but the FindBoost.cmake file in 2.8.3 rc3 (which I think is also what I originally tested with) does not contain the appropriate debug name as described above. (I also checked git master which seems to be identical)
(0022725)
Nils Gladitz   
2010-10-28 02:41   
I just tested at work and I had cmake 2.8.3 rc2 installed but the problem still persists in 2.8.3 rc3.
The attached patch fixes it for me.
(0022740)
Philip Lowman   
2010-10-28 22:58   
Sorry, you are right. I was looking at the wrong bit of code.

I've checked your patch into the staging area. I don't control what gets merged into the next release (2.8.3), so it's possible this may not make it in which case it would be in 2.8.4. I will update the release status as soon as I know.

Thanks again.
(0023115)
Philip Lowman   
2010-11-09 21:15   
It will be fixed in 2.8.4, thanks for the bug report.
(0025733)
David Cole   
2011-03-10 14:41   
Closing resolved issues that have not been updated in more than 3 months.