MantisBT - CMake
View Issue Details
0008335CMakeModulespublic2008-12-30 12:452009-02-24 01:03
Christian Ehrlicher 
Douglas Gregor 
normalmajoralways
closedno change required 
CMake-2-6 
 
0008335: FindBoost.cmake does not set BOOST_DYN_LINK
FindBoost.cmake does not set BOOST_DYN_LINK when Boost_USE_STATIC_LIBS is OFF but it's needed for automatic linking on windows/msvc. Otherwise automatic linking wants to link against the static boost libraries.
No tags attached.
Issue History
2008-12-30 12:45Christian EhrlicherNew Issue
2009-01-07 14:32Bill HoffmanStatusnew => assigned
2009-01-07 14:32Bill HoffmanAssigned To => Douglas Gregor
2009-01-18 18:18Philip LowmanNote Added: 0014609
2009-01-19 02:29Philip LowmanNote Added: 0014612
2009-01-19 02:29Philip LowmanStatusassigned => resolved
2009-01-19 02:29Philip LowmanResolutionopen => no change required
2009-02-24 01:03Philip LowmanStatusresolved => closed

Notes
(0014609)
Philip Lowman   
2009-01-18 18:18   
Adding a simple TARGET_LINK_LIBRARIES(foo ${Boost_LIBRARIES}) seems to fix this problem.

I think better documentation would be the best approach to solving this problem. Making Boost_USE_STATIC_LIBS do any kind of automatic definition of preprocessing symbols would be bad form.
(0014612)
Philip Lowman   
2009-01-19 02:29   
I've clarified the documentation for now just so this can make the 2.6.3 release.

Committer: Philip Lowman <philip@yhbt.com>
/cvsroot/CMake/CMake/Modules/FindBoost.cmake,v <-- FindBoost.cmake
new revision: 1.26; previous revision: 1.25