Hicham,<br><br>Sorry for confusing. I supposed you asked about how to handle different versions of the Boost (1.42, 1.44 etc) on the same build server.<br><br><br><br><div class="gmail_quote">On 6 December 2010 00:16, Hicham Mouline <span dir="ltr">&lt;<a href="mailto:hicham@mouline.org">hicham@mouline.org</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div class="im">&gt; -----Original Message-----<br>
&gt; From: <a href="mailto:philiplowman@gmail.com">philiplowman@gmail.com</a> [mailto:<a href="mailto:philiplowman@gmail.com">philiplowman@gmail.com</a>] On Behalf<br>
&gt; Of Philip Lowman<br>
</div><div class="im">&gt; Sent: 05 December 2010 04:54<br>
&gt; To: Hicham Mouline<br>
&gt; Cc: Philip Lowman; CMake mailing list<br>
&gt; Subject: Re: [CMake] FindBoost: find both win32 and x64 static libs<br>
&gt;<br>
</div><div class="im">&gt; On Saturday, December 4, 2010, Hicham Mouline &lt;<a href="mailto:hicham@mouline.org">hicham@mouline.org</a>&gt;<br>
&gt; wrote:<br>
&gt; &gt;<br>
&gt; &gt; I was wrong. Dmytro pointed out that bjam allows building boost<br>
&gt; &gt; libraries with the compiler and bitness in the boost library name --<br>
&gt; layout=versioned.<br>
&gt; &gt;<br>
&gt; &gt; Therefore, I could have both 32 and 64bit versions in the same<br>
&gt; &gt; directory.<br>
&gt; &gt;<br>
&gt; &gt; I wonder then if FindBoost is able to detect automatically the<br>
&gt; &gt; right ones based on the name of the libs.<br>
&gt;<br>
&gt; I could probably add this feature, I&#39;m pretty sure there isn&#39;t support<br>
&gt; for it now.  Could you create a feature request on the CMake bug<br>
&gt; tracker and include what the filenames look like when generated by<br>
&gt; visual studio?<br>
&gt;<br>
&gt; If you want to try to patch FindBoost yourself, please make sure<br>
&gt; you&#39;re playing with the version from 2.8.3.<br>
&gt;<br>
&gt; <a href="http://www.cmake.org/Bug" target="_blank">http://www.cmake.org/Bug</a><br>
&gt; Philip Lowman<br>
<br>
</div>I&#39;ve built both win32 and x64 versions of boost thread library with the<br>
following 2 lines:<br>
<br>
1. 32bit cl.exe from msvc9 directory in the %PATH%<br>
bjam --with-thread --layout=versioned toolset=msvc address-model=64<br>
variant=release link=static threading=multi runtime-link=shared<br>
<br>
2. 64bit cl.exe from msvc9 directory in the %PATH%<br>
bjam --with-thread --layout=versioned toolset=msvc address-model=64<br>
variant=release link=static threading=multi runtime-link=shared<br>
<br>
however, the resulting .lib files have identical names however:<br>
libboost_thread-vc90-mt-1_44.lib<br>
libboost_thread-vc90-mt.lib<br>
<br>
Dmytro, there is no distinction between 32bit and 64bit. The 64bit lib size<br>
is approximately double the 32bit lib.<br>
<br>
boost-build, how to change this to include the bitness in the boost lib<br>
name?<br>
If it&#39;s impossible, Philip, perhaps FindBoost could be changed to allow for<br>
different directories under BOOST_ROOT for the lib directories, something<br>
like lib\win32 and lib\x64 or whatever names can be agreed on.<br>
<br>
rds,<br>
<br>
</blockquote></div><br><br clear="all"><br>-- <br>Dmytro Ovdiienko<br>e-mail: <a href="mailto:dmitriy.ovdienko@gmail.com">dmitriy.ovdienko@gmail.com</a><br>skype: <a href="mailto:dmitriy.ovdienko@gmail.com">dmitriy.ovdienko@gmail.com</a><br>
mobile: +38050-1909731<br>