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