Commit 491a15c0 authored by Ken Martin's avatar Ken Martin

bug in testing code

parent 0b9521da
......@@ -39,7 +39,11 @@ int main (int argc, char *argv[])
// use this program as the cmake to be run, it should not
// be run that way but the cmake object requires a vailid path
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);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment