Boost logo

Boost Users :

Subject: [Boost-users] How to find Boost 1.40.0 with cmake 2.6?
From: Ingolf Steinbach (ingolf.steinbach_at_[hidden])
Date: 2009-09-18 10:50:08


Hi,

maybe this is a bit off-topic as it is probably a cmake problem, but
it could turn out that the correct solution also involves suitable
invocation of bjam.

As there seems to be no Windows/VC9.0 installer for Boost 1.40.0
(yet), I have built and installed the libraries myself as follows:

...\boost_1_40_0> bootstrap
...\boost_1_40_0> .\bjam --prefix=C:\Programme\boost\boost_1_40_0
...\boost_1_40_0> .\bjam --prefix=C:\Programme\boost\boost_1_40_0 install

Now, there is the following tree in C:\Programme\boost:
C:\Programme\boost
    +-boost_1_40_0
        +-include
        | +-boost-1_40
        | +-boost
        | +....
        +-lib
            +-libboost....-vc90-mt-1_40.lib
            +-...

What is the correct way to teach the FindBoost module in cmake where
to search for the boost installation?

I have found that I need to at least
    set(Boost_ADDITIONAL_VERSIONS "1.40" "1.40.0")

However, cmake does not yet find Boost. According to the debugging
output of the module, the situation seems to improve slightly when I
additionally specify
    set(BOOST_ROOT C:/Programme/boost)

Now, cmake reports "Boost version: 1.40.0" but does not find any libraries.

Would I have to supply different options to bjam in order to find the libraries?

Is it possible to avoid having to specify BOOST_ROOT in the CMakeLists.txt file?

TIA for your support!
Ingolf


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net