[CMake] Boost_DIR

David Doria daviddoria at gmail.com
Wed Sep 5 14:24:56 EDT 2012


On Wed, Sep 5, 2012 at 2:16 PM, Klaim - Joël Lamotte <mjklaim at gmail.com> wrote:
> I might be wrong but my understanding is that it's the other way arround:
> you provide Boost_DIR (root of your boost installation) and it finds the
> rest itself.
> I've been using it like that. I have a custom build of boost in a specific
> directory and an environnement variable Boost_DIR set  to it. I also set
> Boost_ROOT to be sure because previous versions of CMake
> would look for it.
>
> Joel Lamotte
>

Joel,

I tried that -

with

export Boost_DIR=/home/doriad/build/Boost_1_51/

in my ~/.profile

and using:

FIND_PACKAGE(Boost 1.51)

ccmake still shows:

 Boost_DIR       =                *Boost_DIR-NOTFOUND

But as I mentioned,  Boost_INCLUDE_DIR and Boost_LIBRARY_DIRS are set
correctly, and everything builds fine. It is just terribly confusing
for one of the first things a user sees in ccmake is
Boost_DIR-NOTFOUND, even though everything is configured properly!

David


More information about the CMake mailing list