c++ – Building boost for different versions of Visual Studio
I have Visual Studio 2019 and 2022 installed. I want to build boost libraries for 2019 vc142. How do I build vc142 libs instead of vc143?
My current method for building is as follows. I’m using Developer Command Prompt for 2019
, and running the following,
bootstrapper.bat
b2.exe install --prefix=MY_PATH
Unfortunately the output lib files are all vc143. I’ve also tried commenting out IF "%1"=="vc143" SET TOOLSET=msvc : 14.3
in bootstrap.bat with no success. One of the first outputs when running bootstrap.bat is Found with vswhere C:Program FilesMicrosoft Visual Studio2022Community
. I suspect this could be the problem
Read more here: Source link