[CMake] Expected boost path structure.

John Drescher drescherjm at gmail.com
Thu Feb 17 11:37:31 EST 2011


> According to FindBoost.cmake:
>
>  if (NOT BOOST_ROOT AND NOT $ENV{BOOST_ROOT} STREQUAL "")
>    set(BOOST_ROOT $ENV{BOOST_ROOT})
>  endif()
>
> So, it should work with an ENV var, too. But the way this is phrased,
> it would have to have forward slashes "/" and no spaces in it for it
> to work.
>

I launched cmake-gui from a Visual Studio 2008 32 bit command prompt
with the BOOST_ROOT environment variable set in that command prompt.

X:\Other\Libraries\boost_1_45_0>set BOOST_ROOT
BOOST_ROOT="X:/32bit/VC.90/Libraries/boost-1.45.0"

Is there a way to have cmake-gui show its environment variables?

John


-- 
John M. Drescher


More information about the CMake mailing list