[CMake] Boost on Windows

Andreas Pakulat apaku at gmx.de
Tue Jun 23 16:52:26 EDT 2009


On 23.06.09 16:23:21, Bill Hoffman wrote:
> Christopher Harvey wrote:
>> define BOOST_ROOT and point it at the root install location for boost. I
>> had the same problem, that fixed it. I only had to do that on windows.
>>
> There seems to be a bug in the FindBoost, BOOST_ROOT should not be  
> required.   I got it to work by adding this:
>
>
>   SET(_boost_LIBRARIES_SEARCH_DIRS
>     C:/boost/lib
>     C:/boost
>
> "$ENV{ProgramFiles}/boost/boost_${Boost_MAJOR_VERSION}_${Boost_MINOR_VERSION}_${Boost_SUBMINOR_VERSION}/lib"
>
> "$ENV{ProgramFiles}/boost/boost_${Boost_MAJOR_VERSION}_${Boost_MINOR_VERSION}/lib"
>     "$ENV{ProgramFiles}/boost"
>     /sw/local/lib
>   )
>
> Boost installed to here for me:
> c/Program\ Files/boost/boost_1_38/
>
> So the extra _${Boost_SUBMINOR_VERSION} is breaking the find.   CMake is  
> looking in boost_1_38_0.   Is that a special case for 0?  I don't think  
> both will hurt, so I guess I can check this in.

Well, unfortunately so far Boost people don't seem to have a stable
defintion of their include dir or release versions. Most new minor's are
released as major.minor, but sometimes they add a .subminor and it also
sometimes gets into the include-dir I think. Don't have enough boost
versions here to be sure about that though.

Anyway, yes the additional directory won't hurt.

Andreas

-- 
Go to a movie tonight.  Darkness becomes you.


More information about the CMake mailing list