Unfortunately I don't think that is the case. Originally I arrived at the same conclusion, but I tried it myself with the cvs version, and it still isn't fixed. I think that only the second issue in the bug was fixed, which is why it is still open.
Based on the comments made in the bug and at looking at it myself, I think the problem stems from how they searching for the headers and libraries.
Code: Select all
# Look for a standard boost header file.
FIND_PATH(Boost_INCLUDE_DIR
NAMES boost/config.hpp
HINTS ${_boost_INCLUDE_SEARCH_DIRS}
PATH_SUFFIXES ${_boost_PATH_SUFFIXES}
)
${_boost_INCLUDE_SEARCH_DIRS} is a list of the search directories to go through, and BOOST_ROOT is added to it if it is defined or is an environment variable. However, ${_boost_INCLUDE_SEARCH_DIRS} is only passed in as a HINT to FIND_PATH, so the default path (/usr/) is searched through and found first.
After fiddling for a bit I found that if I pass NO_DEFAULT_PATH to FIND_PATH, it finds them correctly, though I'm not sure about how to do a permanent fix.