aboutsummaryrefslogtreecommitdiff
path: root/bpkg/pkg-configure.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'bpkg/pkg-configure.cxx')
-rw-r--r--bpkg/pkg-configure.cxx11
1 files changed, 10 insertions, 1 deletions
diff --git a/bpkg/pkg-configure.cxx b/bpkg/pkg-configure.cxx
index 6db60d4..d63b010 100644
--- a/bpkg/pkg-configure.cxx
+++ b/bpkg/pkg-configure.cxx
@@ -238,12 +238,21 @@ namespace bpkg
//
string n;
strings vars;
+ bool sep (false); // Seen '--'.
while (args.more ())
{
string a (args.next ());
- if (a.find ('=') != string::npos)
+ // If we see the "--" separator, then we are done parsing variables.
+ //
+ if (!sep && a == "--")
+ {
+ sep = true;
+ continue;
+ }
+
+ if (!sep && a.find ('=') != string::npos)
vars.push_back (move (a));
else if (n.empty ())
n = move (a);