setting a variable in a variant for later use
Joshua Root
jmr at macports.org
Thu Oct 18 08:35:37 PDT 2012
On 2012-10-19 02:16 , Jeremy Lavergne wrote:
>> I am trying to set a variable in a variant for later use in another variant, but I am getting errors that the variable does not exist. Here are the relevant lines:
>
> Try wrapping your code in "if {[variant_isset ...]} {...}" rather than inside a variant block--much like how default_variants is used in your code.
That's probably the best approach, since variants aren't guaranteed to
be evaluated in any particular order.
- Josh
More information about the macports-dev
mailing list