[CMake] Modifying the FindBoost.cmake module

Sambeet Panigrahi sambeet161616 at gmail.com
Mon Jun 27 19:21:45 EDT 2016


Hi,
I  am using Cmake to build Orocos RTT. There is a FindBoost.cmake module
available in the config directory which the project uses.Now I have got two
boost installations one in
1)/usr/include/boost
2)~/NewRockPort/x86/Install/boost

The second installation is the one I want to use .However The find_package
command always goes on to find the first installation. There is a section
in the file

  SET(_boost_INCLUDE_SEARCH_DIRS
    "$ENV{INSTALL_PREFIX}/boost/include/"
    C:/boost/include
    C:/boost
    "$ENV{ProgramFiles}/boost/include"
    "$ENV{ProgramFiles}/boost"
    /sw/local/include

in which I have tried to set the second installation's address, but it
always points to the first.I have also tried to set the second installation
from environment but somehow it always detects the first installation.

What can I do to include the second installation in my project?

Regards
Sambeet
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake/attachments/20160628/61cfdaef/attachment.html>


More information about the CMake mailing list