Boost logo

Boost-Build :

From: Vladimir Prus (ghost_at_[hidden])
Date: 2007-08-03 02:10:54


Chris Stankevitz wrote:

>
> Boost.Jam Version 3.1.13. OS=LINUX.
>
> Question:
> How do I store the result of a shell command to a
> variable?
>
> Thank you,
>
> Chris
>
> PS: The following does not work:
>
> # Jamfile
> WXFLAGS = SHELL("wx-config --cppflags") ;

This is not the syntax use to call a rule. The right
syntax is documented at:

        http://boost.org/boost-build2/doc/html/bbv2/advanced.html#bbv2.advanced.jam_language

And the SHELL specifically is documented in:

        http://boost.org/boost-build2/doc/html/bbv2/faq/external.html

- Volodya


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