[CMake] FindBoost: find both win32 and x64 static libs

Dmytro Ovdiienko dmitriy.ovdienko at gmail.com
Thu Dec 2 04:14:56 EST 2010


Hicham,

You can force boost to add compiler name to the library file name. Add
"--layout=versioned" to the bjam command line.

On 1 December 2010 00:37, Hicham Mouline <hicham at mouline.org> wrote:

>  As boost libraries naming convention doesn't include in the lib names
> whether they are built by msvc9 win32 or x64, I am forced on a winxp 64 box
> where I hold both versions to have a different lib directory under
> boost_root.
>
> I set BOOST_ROOT then call FIND_PACKAGE(Boost 1.44 COMPONENTS ...).
>
> Am I supposed to detect which of vc9 32bit or 64bit am  I generating for
> and then set BOOST_LIBRARYDIR depending on that before calling FIND_PACKAGE?
>
> How do I detect bitness?
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the CMake FAQ at:
> http://www.cmake.org/Wiki/CMake_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.cmake.org/mailman/listinfo/cmake
>



-- 
Dmytro Ovdiienko
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20101202/f9d3d56e/attachment.htm>


More information about the CMake mailing list