Boost logo

Boost Users :

Subject: [Boost-users] path of test-binary
From: dib (dib_ggml_at_[hidden])
Date: 2014-01-28 04:21:15


how can I get the path where b2 placed the binaries of boost tests?
Problem is the following:
some of the tests need the path to a shared library, which is built
together with the tests.

in the lib/mylib/tests/Jamfile.v2 I have the following:

# our test lib for shared library tests
lib test_library : test_library.cpp ;

test-suite mylib
   # shared library
   [ run shared_library_load_test.cpp ]
   [ run shared_library_get_symbol_test.cpp ]

Inside shared_library_*_test.cpp I need something like this:

As decides by itself where to put the binary, i cannot
hardcode the path in the source-files.. Is there a way to get the path
from If not, how could I solve this problem?


Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at