Hi, FWIW, I can reproduce the problem from one project I am packaging with the following minimal CMakeLists.txt:
set(BOOST_ROOT ${BOOST}) set(Boost_NO_SYSTEM_PATHS TRUE) set(Boost_DETAILED_FAILURE_MSG TRUE) find_package(Boost 1.48 COMPONENTS thread system ) Without the patch: mbanck@lightning:/tmp/cmake-boost-test/build$ cmake .. -DBOOST=/usr -- The C compiler identification is GNU 4.9.2 -- The CXX compiler identification is GNU 4.9.2 -- Check for working C compiler: /usr/bin/cc -- Check for working C compiler: /usr/bin/cc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working CXX compiler: /usr/bin/c++ -- Check for working CXX compiler: /usr/bin/c++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Could NOT find Boost Boost version: 1.55.0 Boost include path: /usr/include Could not find the following static Boost libraries: boost_thread boost_system No Boost libraries were found. You may need to set BOOST_LIBRARYDIR to the directory containing Boost libraries or BOOST_ROOT to the location of Boost. And with: mbanck@lightning:/tmp/cmake-boost-test/build$ cmake .. -DBOOST=/usr -- The C compiler identification is GNU 4.9.2 -- The CXX compiler identification is GNU 4.9.2 -- Check for working C compiler: /usr/bin/cc -- Check for working C compiler: /usr/bin/cc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working CXX compiler: /usr/bin/c++ -- Check for working CXX compiler: /usr/bin/c++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Boost version: 1.55.0 -- Found the following Boost libraries: -- thread -- system Not sure the way they setup BOOST_ROOT and Boost_NO_SYSTEM_PATHS TRUE is kosher, but wanted to let you know that there's at least corner-cases where this patch might help. Michael