Building Boost with Visual Studio 2017

So I feel like I make a lot of posts about how to build Boost… Anyways..

The issue is that the Boost.Build system does not support building the current version of Visual Studio.

Here’s how to work around that.

Build Boost with Visual Studio 2017

    /> bootstrap
import option ;

using msvc : 14.0 : "c:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.10.25017\bin\HostX86\x86\cl.exe";

option.set keep-going : false ;

Ensure the path to cl matches what is on your system.

    /> b2 toolset=msvc-14.0 address-model=32 architecture=x86 link=static threading=multi stage

Optional: CMake

    /> cd /path/to/project && mkdir build && cd build
    /> cmake .. -G "Visual Studio 14" -DBoost_USE_STATIC_LIBS=ON -DBoost_USE_MULTITHREADED=ON