bug in testing code

This commit is contained in:
Ken Martin 2001-09-11 14:42:50 -04:00
parent 0b9521daf7
commit 491a15c0c2
1 changed files with 5 additions and 1 deletions

View File

@ -39,7 +39,11 @@ int main (int argc, char *argv[])
// use this program as the cmake to be run, it should not // use this program as the cmake to be run, it should not
// be run that way but the cmake object requires a vailid path // be run that way but the cmake object requires a vailid path
std::string cmakeCommand = CMAKE_COMMAND; std::string cmakeCommand = CMAKE_COMMAND;
if(cmakeCommand[0] = '\"') if(cmakeCommand[0] == '\\' && cmakeCommand[1] == '\"')
{
cmakeCommand = cmakeCommand.substr(2, cmakeCommand.size()-4);
}
if(cmakeCommand[0] == '\"')
{ {
cmakeCommand = cmakeCommand.substr(1, cmakeCommand.size()-2); cmakeCommand = cmakeCommand.substr(1, cmakeCommand.size()-2);
} }