Simon Pickles
Simon Pickles

Reputation: 3

Linking to boost unit test framework with boost build

Using boost build, if I can link to a boost python library with this in my jamfile:

project myProject : requirement /boost/python//boost_python ;

how can I link to boost test? I have built the boost test library.

I don't want to use file paths since my code is portable. Thanks

Si

Upvotes: 0

Views: 715

Answers (1)

Yukiko
Yukiko

Reputation: 1123

If you have standard (or prebuilt) libraries installed in a location which can vary between different machines, you may consider using site-config. Then the site-config can be adapted on each machine but the project Jamfile remains the same.

See the Boost Build documentation: Targets in site-config.jam for details.

Upvotes: 1

Related Questions