[CMake] Modifying the FindBoost.cmake module
Andreas Naumann
Andreas-Naumann at gmx.net
Tue Jun 28 01:49:52 EDT 2016
Hey,
if you would use the FindBoost.cmake module from cmake itself, you could
set the environment variable BOOST_ROOT to the second path.
Regards,
Andreas
Am 28.06.2016 um 01:21 schrieb Sambeet Panigrahi:
> 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
>
>
More information about the CMake
mailing list