Boost logo

Boost-Build :

Subject: Re: [Boost-build] How to declare Boost libraries that do auto-linking
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2009-05-13 11:46:52


Ian Emmons wrote:
> I am struggling to declare Boost libraries in my site-config.jam file
> for Windows. I would like to use the auto-linking feature to avoid
> specifying the library name, something like this:
> searched-lib BoostProgramOptions
> : # no sources
> : <toolset>msvc
> <address-model>64:<search>$(BoostDir)/msvc-64/stage/lib
> <address-model>32:<search>$(BoostDir)/msvc-32/stage/lib
> : # no default build
> : <include>$(BoostDir)
> <link>shared:<define>BOOST_PROGRAM_OPTIONS_DYN_LINK
> ;
> This does not work, because the searched-lib target generates a
> default value for the name feature ("BoostProgramOptions.lib") that
> does not exist. What is the proper way to do this?

Can you use the alias rule and put <library-path> in the usage requirements?

In Christ,
Steven Watanabe

Boost-Build list run by bdawes at, david.abrahams at, gregod at, cpdaniel at, john at