[CMake] Boost_DIR

David Doria daviddoria at gmail.com
Wed Sep 5 13:25:10 EDT 2012


On Wed, Jan 11, 2012 at 5:55 AM, Daniel Dekkers <d.dekkers at cthrough.nl> wrote:
> Hi, does anyone know what this “Boost_DIR” variable is from the
> findBoost.cmake module? And why it is never found?
>
> Everything works well, I use BOOST_ROOT to set the path to the Boost
> distribution, just curious.
>
> Daniel

I would like to revive this question.

When I do this:

FIND_PACKAGE(Boost 1.51 COMPONENTS program_options required)

I see a variable Boost_DIR that gets set to Boost_DIR-NOTFOUND, even
though Boost_INCLUDE_DIR, Boost_LIBRARY_DIRS, and a whole bunch of
other variables are set correctly, and the project builds correctly.
Is there something else you have to do to get Boost_DIR to not say
NOTFOUND?

Thanks,

David


More information about the CMake mailing list