Boost logo

Boost-Build :

From: Chris Stankevitz (chrisstankevitz_at_[hidden])
Date: 2007-08-02 22:56:01


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") ;
echo $(WXFLAGS) ;

$ jam
SHELL(wx-config --cppflags)
...found 7 targets...
$

I expected to see something that looked like this:
$ wx-config --cppflags
-I/usr/lib/wx/include/gtk2-unicode-release-2.6
-I/usr/include/wx-2.6 -DGTK_NO_CHECK_CASTS -D__WXGTK__
-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -DNO_GCC_PRAGMA
$

      ____________________________________________________________________________________
Luggage? GPS? Comic books?
Check out fitting gifts for grads at Yahoo! Search
http://search.yahoo.com/search?fr=oni_on_mail&p=graduation+gifts&cs=bz


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