I am currently having a problem with Boost. During CMake stage, it stated clearly that boost was found:
-- Boost version: 1.61.0
-- Found the following Boost libraries:
--   filesystem
--   program_options
--   iostreams
--   timer
--   system
--   regex
But during the make stage from the generated Makefile:
Timer.h(26): catastrophic error: cannot open source file "boost/timer/timer.hpp"
  #include <boost/timer/timer.hpp>
[..]                                  ^
Function.h(29): catastrophic error: cannot open source file "boost/ptr_container/ptr_map.hpp"
  #include <boost/ptr_container/ptr_map.hpp>
[..]
basically, it doesn't seem like Makefile found any header for boost. I have even gone and declare Boost_INCLUDEDIR and Boost_LIBRARYDIR - case sensitive. Doesn't look like it helps.
What could be the possible cause? Could it be some conflicts between the compiler, i.e. gcc/icc and the cmake generator? (Pure guess - I am not expertised in this area...)
EDIT: This is the process of find boost in the CMakeLists.txt file: http://pastebin.com/7m3yAYk5 and the FindBOOST.cmake is here: https://github.com/Kitware/CMake/blob/master/Modules/FindBoost.cmake
