<div dir="ltr"><pre>>On 03.09.08 00:01:38, Judicaël Bedouet wrote:<br>>><i> I have downloaded Multithread DLL for Visual Studio 2003 and tried to find<br></i>>><i> them with CMake 2.6-1. Boost version is 1.35<br>
</i>>><i> CMake finds headers but can't find libraries. CMake search the following<br></i>>><i> directories :<br></i>>><i> <br></i>>><i> - C:/boost/lib<br></i>>><i> - C:/boost<br></i>>><i> -<br>
</i>>><i> $ENV{ProgramFiles}/boost/boost_${Boost_FIND_VERSION_MAJOR}_${Boost_FIND_VERSION_MINOR}_${Boost_FIND_VERSION_PATCH}<br></i>>><i> - $ENV{ProgramFiles}/Boost<br></i>>><i> <br></i>>><i> Third path refers to variables ${Boost_FIND_VERSION_MAJOR},<br>
</i>>><i> ${Boost_FIND_VERSION_MINOR} and ${Boost_FIND_VERSION_PATCH} but I don't want<br></i>>><i> to specify a specific version. So, this paths is valued at C:\Program<br></i>>><i> Files/boost/boost___/lib.<br>
</i>><br>>You're not specifying a _specific_ version, but a minimum version<br>>number. In most cases this is a good idea, especially if you don't test<br>>your code with older versions of the library.<br>
><br><br>OK. I will specify a minimum version. Should be 1.34 or 1.33 for my project under Linux.<br><br>>><i> Standard Boost installer installs libraries to "C:\Program<br></i>>><i> Files\boost\boost_1_35_0\lib".<br>
</i>>><i> <br></i>>><i> So, I suggest this patch. After reading Boost_LIB_VERSION and Boost_VERSION<br></i>>><i> in boost/version.hpp, we could add path<br></i>>><i> $ENV{ProgramFiles}/boost/boost_${Boost_MAJOR_VERSION}_${Boost_MINOR_VERSION}_${Boost_SUBMINOR_VERSION}/lib<br>
</i>>><i> to library search dirs. It works fine for me.<br></i>>><i> <br></i>>><i> Could this be applied to future CMake versions ?</i><br><br>>Looks fine to me, but you might want to open a bugreport in the CMake<br>
>issue tracker.<br><br>Done. <a href="http://public.kitware.com/Bug/view.php?id=7593">http://public.kitware.com/Bug/view.php?id=7593</a><br><br>>Andreas<br><br>Thanks,<br>J. Bedouet<br><br></pre></div>