udoprog/c10t — Issue #244: Build error when boost is in /usr/lib64
Author: jheiv
Created: 2012-02-06 07:07:47+00:00
State: open

I had a build error with cmake when boost libraries are in /usr/lib64.

It was

Unable to find the requested Boost libraries.

Boost version: 1.44.0

Boost include path: /usr/include

The following Boost libraries could not be found:

boost_thread
boost_filesystem
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.
Call Stack (most recent call first):
CMakeLists.txt:34 (find_package)

-- Configuring incomplete, errors occurred!

This is not so much a bug, but a workaround in case anyone else experiences the issue.

After messing around with BOOST_LIBRARYPATH unsuccessfully, I was able to build by changing

set(Boost_USE_STATIC_LIBS TRUE)

to

set(Boost_USE_STATIC_LIBS FALSE)

in `CMakeLists.txt`.