View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0004378CMakeModulespublic2007-01-29 05:552008-07-03 16:00
Reporteroleg dashevskii 
Assigned ToBill Hoffman 
PrioritynormalSeveritymajorReproducibilityalways
StatusclosedResolutionfixed 
PlatformOSOS Version
Product Version 
Target VersionFixed in VersionCMake-2-6 
Summary0004378: Boost libs are not found
DescriptionMy 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")
TagsNo tags attached.
Attached Files

 Relationships

  Notes
(0010122)
Alex Neundorf (developer)
2008-01-10 16:41

Why does it need to go in the cache ?

Alex
(0011488)
Douglas Gregor (developer)
2008-04-22 13:32

The updated FindBoost module now sets Boost_LIBRARY_DIRS as a cache variable when Boost is found.

 Issue History
Date Modified Username Field Change
2008-01-10 16:41 Alex Neundorf Note Added: 0010122
2008-04-22 13:32 Douglas Gregor Status assigned => resolved
2008-04-22 13:32 Douglas Gregor Fixed in Version => CMake-2-6
2008-04-22 13:32 Douglas Gregor Resolution open => fixed
2008-04-22 13:32 Douglas Gregor Note Added: 0011488
2008-07-03 16:00 Douglas Gregor Status resolved => closed


Copyright © 2000 - 2018 MantisBT Team