Den 19-07-2017 kl. 18:58 skrev paul via Boost:
On Wed, 2017-07-19 at 12:39 -0400, Edward Diener via Boost wrote:
Please look at the 'lib' rule in Boost Build at http://www.boost.org/build/doc/html/bbv2/tasks/libraries.html and tell me why you think Boost Build does not support prebuilt libraries.
But it only searches along the default compiler paths and additional paths added in the build script. There is no way for me to inform bjam that I installed my dependencies in another directory.
That is, I installed my dependencies in /deps. So how do I tell boost to look for zlib and bzip2 there? I can't say `--prefix-path /deps` and it will find them. Instead I need to say `-s ZLIB_LIBPATH=/deps -s BZIP2_LIBPATH=/deps`. A custom variable for each one.
For example, you may say lib SqlApi : : <name>sqlapi <search>$(DEPENDENCY_ROOT)/lib/Debug <variant>debug ; lib SqlApi : : <name>sqlapi <search>$(DEPENDENCY_ROOT)/lib/Release <variant>release ; -Thorsten