Fix arguments
This commit is contained in:
parent
ceb63bedaf
commit
3001a9ae80
|
@ -95,16 +95,16 @@ void cmCommandLineInfo::ParseParam(const std::string& parameter,
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
std::string sParam(parameter.c_str(), 1);
|
std::string sParam(parameter.c_str(), 1, parameter.npos);
|
||||||
// Single letter valued flag like /B=value or /B:value
|
// Single letter valued flag like /B=value or /B:value
|
||||||
std::string value;
|
std::string value;
|
||||||
if (sParam[1] == '=' || sParam[1] == ':')
|
if (sParam[1] == '=' || sParam[1] == ':')
|
||||||
{
|
{
|
||||||
value = std::string(parameter.c_str()+2);
|
value = std::string(parameter.c_str()+3);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
value = std::string(parameter.c_str()+1);
|
value = std::string(parameter.c_str()+2);
|
||||||
}
|
}
|
||||||
int res;
|
int res;
|
||||||
switch (sParam[0])
|
switch (sParam[0])
|
||||||
|
|
Loading…
Reference in New Issue