[CMake] FindPackage search priority for Boost

Petar Marendic dionizster at gmail.com
Wed Apr 11 09:04:00 EDT 2012


Greetings,

I recently noticed that FindPackage always begins its search for package
Boost in /usr/lib and only thereafter in the directory specified by
variable BOOST_ROOT. This can cause problems if there already are Boost
libraries in the /usr/lib directory as they will be selected over those (or
together with those) located in BOOST_ROOT subdirectories.

Is this intended behavior and if so what is the conventional procedure to
resolve such issues?

This behaviour was exhibited with CMake version 2.8.0, Ubuntu 10.04.3 LTS
Lucid Lynx and Boost version 1.49.0

Kind regards,
Petar Marendich
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20120411/2d80de6a/attachment.htm>


More information about the CMake mailing list