Open GoogleCodeExporter opened 9 years ago
Okay so apparently there's an issue with the buildin FindBoost.cmake
The toolchain seems to set some stuff that changed the behaviour of find_path(
... ) and find_library( ... )
The find_path one can be fixed by passing
NO_CMAKE_FIND_ROOT_PATH..
basically in the FindBoost.cmake you can replace:
# 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_FIND_OPTIONS}
)
with
# 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_FIND_OPTIONS}
NO_CMAKE_FIND_ROOT_PATH
)
That way the include dir gets found again.
However I am still at a loss how to fix the find_library one..
Original comment by toriga...@gmail.com
on 1 Mar 2013 at 8:26
Use find_host_package instead.
Original comment by answeror
on 7 Mar 2013 at 10:42
actually adding NO_CMAKE_FIND_ROOT_PATH works for getting the boost
installation. You just have to add /boost in the "find includes" part since the
old versions have their include files there.
Original comment by toriga...@gmail.com
on 10 Mar 2013 at 6:10
Original issue reported on code.google.com by
toriga...@gmail.com
on 1 Mar 2013 at 11:21