ENH: take cmake style command line options so edit_cache works
This commit is contained in:
parent
0caf44cb5d
commit
6e472fdbb0
@ -54,9 +54,15 @@ void CMakeCommandLineInfo::ParseParam(LPCTSTR lpszParam, BOOL bFlag, BOOL bLast)
|
|||||||
{
|
{
|
||||||
CString sParam(lpszParam);
|
CString sParam(lpszParam);
|
||||||
// Single letter valued flag like /B=value or /B:value
|
// Single letter valued flag like /B=value or /B:value
|
||||||
|
CString value;
|
||||||
if (sParam[1] == '=' || sParam[1] == ':')
|
if (sParam[1] == '=' || sParam[1] == ':')
|
||||||
{
|
{
|
||||||
CString value(sParam.Right(sParam.GetLength() - 2));
|
value = sParam.Right(sParam.GetLength() - 2);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
value = sParam.Right(sParam.GetLength()-1);
|
||||||
|
}
|
||||||
int res;
|
int res;
|
||||||
switch (sParam[0])
|
switch (sParam[0])
|
||||||
{
|
{
|
||||||
@ -82,7 +88,6 @@ void CMakeCommandLineInfo::ParseParam(LPCTSTR lpszParam, BOOL bFlag, BOOL bLast)
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
// Call the base class to ensure proper command line processing
|
// Call the base class to ensure proper command line processing
|
||||||
CCommandLineInfo::ParseParam(lpszParam, bFlag, bLast);
|
CCommandLineInfo::ParseParam(lpszParam, bFlag, bLast);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user