Boost logo

Boost :

Subject: Re: [boost] building, debugging and contributing to an individual boost library
From: Peter Dimov (lists_at_[hidden])
Date: 2019-02-17 01:44:19


Sean Farrow wrote:
> Hi,
>
> Once I have forked an individual boost library, what is the best way of
> building the library with b2? How are dependencies on other libraries
> handled?
>
> Secondly, how can I build, run and debug tests using visual studio?

Which specific library do you have in mind?

The easiest way to run the tests is to just clone the whole Boost, with git
clone --recursive, run `b2 headers`, then cd into libs/<library>/test and
run b2 -j8 (or however many cores you have).

In general - unless the library contains a VS project - there's no good way
to run the tests under Visual Studio (or if there is, I don't know it.) What
I do is run the tests with b2, and if I need to debug one of them, I make a
project that does #include <libs/<library>/test/failing_test.cpp> and run
that.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk