I'm using the conan package manager to install my dependencies for a project. That project needs boost system only of all boost libraries, since I'm only using asio and beast.
However, conan installs every part of boost, which is undesirable. If I'm installing it through a docker container on a mac machine, it takes more than an hour and the boost directory in the conan cache is more than one gigabyte on any platform, which is ten time more heavy than all other libraries combined.
I only want to install Boost.system, which in general should be quite lightweight. Is there a way to do that? Here's the conent of my conan file:
[requires]
boost/1.73.0 # here! I'd like something like "boost.system/1.73.0"
nlohmann_json/3.9.0
fmt/7.0.2
# other libs...
[generators]
cmake
[options]
nlohmann_json:implicit_conversions=False
I'm requiring boost 1.73 and I will switch to requiring 1.74 soon.
In my CMake, I do this:
target_link_libraries(my_app PRIVATE Boost::system)
Everything works there, but it's still much much more heavy than it should be, and it slows down deployment significantly.