After a long time I have found out that there is really no way (apart from very hacky) to do this. The goal of Boost.Build is to let the toolset option for the user to define.
The user has several ways to specify the toolset:
- in the command line with
--toolset=gcc
for example - in the user configuration by setting it in the
user-config.jam
for all projects compiled by the user - in the site configuration by setting it in the
site-config.jam
for all users
the user-config.jam
can be in the user's $HOME or in the boost build path.
the site-config.jam
should be in the /etc directory, but could also be in the two locations above.
In summary, setup your site-config or user-config for a pleasant experience, and write a nice README file for users trying to compile your program.
Hope this helps someone else.