Of course - I really should have figured that out by myself!! >.<

Thanks Volodya!

On 25 September 2015 at 01:37, Vladimir Prus <vladimir.prus@gmail.com> wrote:
On 24-Sep-15 9:45 PM, Steve Lorimer wrote:
I have the following library:

lib model
:   [ glob *.cpp *.cc *.h ]
:   <cxxflags>-fPIC
     <library>/qt5//QtCore/<link>shared
     <library>/qt5//QtWidgets/<link>shared
     <library>/qt5//QtGui/<link>shared
:
:
     <cxxflags>-fPIC
;


Using this library in my app pulls in the required qt libraries and links
fine

If I replace the qt requirements with an alias, and reference that alias in
my library, my app fails to link with "undefined reference"

alias qt
:
:   <cxxflags>-fPIC
     <library>/qt5//QtCore/<link>shared
     <library>/qt5//QtWidgets/<link>shared
     <library>/qt5//QtGui/<link>shared
:
:
     <cxxflags>-fPIC
;

lib model
:   [ glob *.cpp *.cc *.h ]
     qt
;


What am I doing wrong?

Steve,

what alias metatarget does is:

1. Build all sources, adding specified requirements to build properties
2. Return all the results, adding specified usage requirements too

Since your alias has no sources at all, part (1) does not do anything, and your
<library> requirements have no effect.

If you move them to usage requirements, things should work.

HTH,
Volodya


_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost-build