Build boost as static libs for Visual Studio 2012

Following is a small script that I use to build a few static Boost libraries in 64 bits for Visual Studio 2012, and with iterator debugging turned off.

:: build the bjam and b2 exe
if not exist "b2.exe" (
    bootstrap.bat
)

:: build boost with visual 2012 toolset.
::   - static lib
::   - multithreaded shared runtime
::
:: it only builds signals and filesystem
b2.exe -a -d0 -j4 toolset=msvc-11.0 address-model=64 variant=debug link=static threading=multi runtime-link=shared define=_HAS_ITERATOR_DEBUGGING=0 --with-signals --with-filesystem
b2.exe -a -d0 -j4 toolset=msvc-11.0 address-model=64 variant=release link=static threading=multi runtime-link=shared define=_HAS_ITERATOR_DEBUGGING=0 --with-signals --with-filesystem

Leave a Reply

Your email address will not be published. Required fields are marked *