|
|
@@ -440,6 +440,13 @@ public:
|
|
|
args.push_back(*arg);
|
|
|
}
|
|
|
}
|
|
|
+ void Store(std::vector<cmStdString>& args) const
|
|
|
+ {
|
|
|
+ for(char** arg = this->ArgV; arg && *arg; ++arg)
|
|
|
+ {
|
|
|
+ args.push_back(*arg);
|
|
|
+ }
|
|
|
+ }
|
|
|
};
|
|
|
|
|
|
//----------------------------------------------------------------------------
|
|
|
@@ -451,6 +458,15 @@ void cmSystemTools::ParseUnixCommandLine(const char* command,
|
|
|
argv.Store(args);
|
|
|
}
|
|
|
|
|
|
+//----------------------------------------------------------------------------
|
|
|
+void cmSystemTools::ParseUnixCommandLine(const char* command,
|
|
|
+ std::vector<cmStdString>& args)
|
|
|
+{
|
|
|
+ // Invoke the underlying parser.
|
|
|
+ cmSystemToolsArgV argv = cmsysSystem_Parse_CommandForUnix(command, 0);
|
|
|
+ argv.Store(args);
|
|
|
+}
|
|
|
+
|
|
|
std::string cmSystemTools::EscapeWindowsShellArgument(const char* arg,
|
|
|
int shell_flags)
|
|
|
{
|