Philip,<br><br>I like it. That is exactly I tried to achieve with BOOST_LIBRARYDIR. However BOOST_LIBRARYDIR does not support list values in the CMake 2.8.2.<br><br><div class="gmail_quote">On 7 December 2010 15:16, Philip Lowman <span dir="ltr"><<a href="mailto:philip@yhbt.com">philip@yhbt.com</a>></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"><p>On Sunday, December 5, 2010, Hicham Mouline <<a href="mailto:hicham@mouline.org" target="_blank">hicham@mouline.org</a>> wrote:</p>
<p> > I'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'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.</p></div><p>If the user is compiling 32-bit code I could make FindBoost search "lib32" before "lib" and for 64-bit code I can make it search "lib64" before "lib". If the user had an empty lib64 directory for some reason, it would still find the boost libraries in "lib".</p>
<p>Would this work for you?</p><p>The BOOST_LIBRARYDIR variable is the only other workaround I can think to this issue.</p>
</blockquote></div><br><br clear="all"><br>-- <br>Dmytro Ovdiienko<br><br>