[CMake] cmake system library

Rolf Eike Beer eike at sf-mail.de
Sat Jan 12 07:28:10 EST 2013


peterle oberwi wrote:
> Hi,
> 
> I want to use Boost library in my project. But there is one version
> installed in the system, but not the version I want to use in my project.
> Therefore I build the version and installed to a directory in my home. When
> I want to use this version it's very anyoing, because cmake find the system
> version. My solution is to give a path to the find_package command and use
> my own modifed cmake module to use my version. Is there an easier solution
> to use non-system libraries without modifying the cmake module or to set
> specific variables e.g. there are libraries like qt which have no variables
> which can be set.

Set BOOST_ROOT to the root of your installing. You need to call this from a 
clean build directory.

Eike
-- 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
URL: <http://www.cmake.org/pipermail/cmake/attachments/20130112/37185027/attachment.pgp>


More information about the CMake mailing list