On Tue, 16 Apr 2019 at 21:37, Osman Zakir via Boost-users
How can I have Boost.Build use VS2019 when building Boost? I have a side-by-side installation of VS2019 on my computer, along with VS2017 also still being there.
1. START > Command Prompt (yes, the regular Windows Command Prompt) 2. cd C:\where\is\your\boost-1.70 3. bootstrap.bat 4. Run b2 toolset=msvc-14.2 --debug-configuration notice: found boost-build.jam at D:/boost.win/boost-build.jam notice: loading Boost.Build from D:/boost.win/tools/build/src notice: Searching 'C:\WINDOWS' 'C:\Users\mateuszl' 'C:\Users\mateuszl' 'C:\Users\mateuszl' 'D:\boost.win\tools/build/src' 'D:/boost.win/tools/build/src/kernel' 'D:/boost.win/tools/build/src/util' 'D:/boost.win/tools/build/src/build' 'D:/boost.win/tools/build/src/tools' 'D:/boost.win/tools/build/src/contrib' 'D:/boost.win/tools/build/src/.' for site-config configuration file 'site-config.jam'. notice: Configuration file 'site-config.jam' not found in 'C:\WINDOWS' 'C:\Users\mateuszl' 'C:\Users\mateuszl' 'C:\Users\mateuszl' 'D:\boost.win\tools/build/src' 'D:/boost.win/tools/build/src/kernel' 'D:/boost.win/tools/build/src/util' 'D:/boost.win/tools/build/src/build' 'D:/boost.win/tools/build/src/tools' 'D:/boost.win/tools/build/src/contrib' 'D:/boost.win/tools/build/src/.'. notice: Searching 'C:\Users\mateuszl' 'C:\Users\mateuszl' 'C:\Users\mateuszl' 'D:\boost.win\tools/build/src' 'D:/boost.win/tools/build/src/kernel' 'D:/boost.win/tools/build/src/util' 'D:/boost.win/tools/build/src/build' 'D:/boost.win/tools/build/src/tools' 'D:/boost.win/tools/build/src/contrib' 'D:/boost.win/tools/build/src/.' for user-config configuration file 'user-config.jam'. notice: Configuration file 'user-config.jam' not found in 'C:\Users\mateuszl' 'C:\Users\mateuszl' 'C:\Users\mateuszl' 'D:\boost.win\tools/build/src' 'D:/boost.win/tools/build/src/kernel' 'D:/boost.win/tools/build/src/util' 'D:/boost.win/tools/build/src/build' 'D:/boost.win/tools/build/src/tools' 'D:/boost.win/tools/build/src/contrib' 'D:/boost.win/tools/build/src/.'. notice: Searching '.' for project-config configuration file 'project-config.jam'. notice: Loading project-config configuration file 'project-config.jam' from '.'. notice: [msvc-cfg] msvc-11.0 detected, command: 'C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\bin\cl.exe' notice: [msvc-cfg] msvc-10.0 detected, command: 'C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin\cl.exe' notice: [msvc-cfg] msvc-14.2 detected, command: 'C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.20.27508\bin\Hostx64\x64\cl.exe' notice: [msvc-cfg] msvc-14.1 detected, command: 'C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.16.27023\bin\Hostx64\x64\cl.exe' notice: will use 'C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.20.27508\bin\Hostx64\x64\cl.exe' for msvc, condition <toolset>msvc-14.2 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 5 .Verify if VS 2019 is reported in the configuration diagnostics like underlined above If you want to build with VS2017, instead of toolset=msvc-14.2, use toolset=msvc-14.21 Best regards, -- Mateusz Loskot, http://mateusz.loskot.net