On Thu, Feb 1, 2018 at 3:12 AM, Jeff Wright <
jeff...@gmail.com> wrote:
> I have the libraries set to install : true. Is there some way to set the
> install location to be a location relative to the top level project's build
> tree?
The short answer is to not do that. Having multiple copies of a dll in
the same build tree is very fragile and can break in various
interesting ways.
The longer answer is that it is possible to make executables run from
the build tree (just like on unix with rpath) using manifest files. We
would really like to add support for those so all of this shuffling
goes away (we already fake it during unit tests by manipulating PATH).
The downside is that none of us really knows how to actually implement
this and we have been fairly busy with other things. If there are
people with the relevant Windows experience, please submit patches for
this. Thanks.
There are two simple workarounds for this issue. The first is to do an
install to some throwaway directory (so that all exes and dlls are in
the same dir) and run your program from there. The second is to use
static linking.