setting a variable in a variant for later use

Jeremy Lavergne jeremy at lavergne.gotdns.org
Thu Oct 18 08:16:36 PDT 2012


> 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.



More information about the macports-dev mailing list