Boost logo

Boost-Build :

Subject: [Boost-build] [boost-build] usage requirements via lib or alias
From: Steve Lorimer (steve.lorimer_at_[hidden])
Date: 2015-09-24 14:45:35


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?

TIA
Steve



Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk