I'm just getting started on a project with wxWidgets, and I'm trying to set up a Bakefile for cross-platform compilation. I need to pass the output of wx-config --libs
and wx-config --cxxflags
to the compiler.
How can I accomplish this? I cannot find anything in the Bakefile docs about getting the output of a command into a variable. Backticks don't seem to work:
myvar = `wx-config --libs`
#=> bakefile.bkl:2:12: error: no viable alternative at character u'`'