$include_dir="/home/hyper-archives/boost-build/include"; include("$include_dir/msg-header.inc") ?>
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