MantisBT - CMake
View Issue Details
0004378CMakeModulespublic2007-01-29 05:552008-07-03 16:00
oleg dashevskii 
Bill Hoffman 
normalmajoralways
closedfixed 
 
CMake-2-6 
0004378: Boost libs are not found
My C++ program uses Boost, so I put find_package(Boost) into CMakeLists.txt

I found out that Boost_LIBRARY_DIRS variable doesn't get its way into cache, it remains local to FindBoost.cmake and therefore cannot be used.

Simple fix: (FindBoost.cmake, line 144):

SET(Boost_LIBRARY_DIRS ${Boost_LIBRARY_DIR} CACHE FILEPATH "Boost library dir")
No tags attached.
Issue History
2008-01-10 16:41Alex NeundorfNote Added: 0010122
2008-04-22 13:32Douglas GregorStatusassigned => resolved
2008-04-22 13:32Douglas GregorFixed in Version => CMake-2-6
2008-04-22 13:32Douglas GregorResolutionopen => fixed
2008-04-22 13:32Douglas GregorNote Added: 0011488
2008-07-03 16:00Douglas GregorStatusresolved => closed

Notes
(0010122)
Alex Neundorf   
2008-01-10 16:41   
Why does it need to go in the cache ?

Alex
(0011488)
Douglas Gregor   
2008-04-22 13:32   
The updated FindBoost module now sets Boost_LIBRARY_DIRS as a cache variable when Boost is found.