AMDG On 03/23/2014 11:24 AM, Mauricio Carneiro wrote:
I am using boost-build to build my project, but I have added a static library as a dependency that is built using GNU make. If I build this library manually, I can link it to my project in boost build using this simple Jamfile:
lib hts : : <link>static <file>lib/lib.a : : <include>lib_headers ;
Is there a way to tell boost-build to run make on the directory if the lib/lib.a is not present there?
You'll need a custom rule that runs make: path-constant make-dir : path/to/makefile/directory ; actions external-make { cd $(make-dir) && make } make lib.a : : @external-make : <location>directory/of/lib.a ; alias hts : lib.a : <link>static : : <include>lib_headers ; In Christ, Steven Watanabe