I am having a problem with b2 on Windows using Visual Studio (2010 &amp; 2012 but it is irrelevant):<div>Until now I was building boost with b2 in a way that would first build 32 bit version in the default library directory, then the 64bit version in lib/64 .</div>
<div>I wasn&#39;t using the 64bit version until this morning so I didn&#39;t get any problem whatever my use of boost was.</div><div>I often use Cmake these days and I set the boost environment variables for FindBoost CMake script to find it.</div>
<div><br></div><div>My problem is that I&#39;m trying now to use the 64 bit version now and CMake FindBoost script will only find the 32 bit version.</div><div>CMake correctly assume that the library files in the lib directory are the one to use, however it have no apparent way to </div>
<div>find if it is for 64 or 32 bit.</div><div><br></div><div>Now I&#39;m not sure how to fix this.</div><div>I see two solutions but I don&#39;t see how to apply them:</div><div><br></div><div>1. make b2 generate lib and dll files with an additional indication on if it&#39;s 64 or 32 bit address model. </div>
<div>I didn&#39;t find such option in b2 --help so I assume that it is not possible?</div><div><br></div><div>2. find a way for CMake FindBoost to automatically find the 64 bit binaries instead of the 32 bit binaris.</div>
<div>I don&#39;t see a clear solution to achieve this, because it depends a lot on how boost have been compiled.</div><div><br></div><div>Note: I don&#39;t want to use a default boost installation, I want to use my custom build.</div>
<div><br></div><div><br></div><div>Any advice on how I should proceed?</div><div><br></div><div>Thanks for your patience.</div><div><br></div><div>Joel Lamotte</div>