I built BOOST with MSVC2022 in a similar way I built it with MSVC2017 except that I did install
, but not stage
:
cd C:\dev\repos\boost_1_80_0
set OPENSSL_ROOT_DIR=C:/dev/libs/OpenSSL
set OPENSSL_USE_STATIC_LIBS=ON
bootstrap.bat
b2 install --prefix=C:/dev/libs/boost_1_80_0 --toolset=msvc-14.3 link=static runtime-link=static variant=release address-model=64
b2 install --prefix=C:/dev/libs/boost_1_80_0 --toolset=msvc-14.3 link=static runtime-link=static variant=debug address-model=64
I am not sure if OPENSSL_ROOT_DIR takse an effect because boost::asio
is header-only (but it depends on system
and thread
modules).
Component configuration:
- atomic : building
- chrono : building
- container : building
- context : building
- contract : building
- coroutine : building
- date_time : building
- exception : building
- fiber : building
- filesystem : building
- graph : building
- graph_parallel : building
- headers : building
- iostreams : building
- json : building
- locale : building
- log : building
- math : building
- mpi : building
- nowide : building
- program_options : building
- python : building
- random : building
- regex : building
- serialization : building
- stacktrace : building
- system : building
- test : building
- thread : building
- timer : building
- type_erasure : building
- wave : building
Boost docs: https://www.boost.org/doc/libs/1_80_0/more/getting_started/windows.html
It created a strange directory C:\dev\libs\boost_1_80_0\include\boost-1_80\boost
Using from CMake: https://stackoverflow.com/questions/6646405/how-do-you-add-boost-libraries-in-cmakelists-txt