Boost-bjam: result of a link with a precompiled library

What should I put in the jamroot.jam file so that libAPLibrary.so is linked to the compilation result of MyProject?

  root
   | -MyProject
   |  | -jamroot.jam
   |
   | -AnotherProject
       | -lib
           | -libAPLibrary.so 
+1
source share
1 answer

if libAPLibrary.so is already compiled, you must declare it and a link to it, like so:

lib libAPLibrary : : # watch out for empty spaces, they are mandatory <file>../AnotherProject/lib/libAPLibrary.so ; exe MyProject : # your project sources here # this is a generic filter but you # can replace it with file names [ glob *.c* ] # external libraries libAPLibrary ; 
+1
source

All Articles