mirror of
https://github.com/Kitware/CMake.git
synced 2026-07-08 23:57:29 +00:00
Can't use std::string::clear() in cmake.
This commit is contained in:
@@ -72,7 +72,7 @@ const char *cmCompiledGeneratorExpression::Evaluate(
|
||||
return this->Input;
|
||||
}
|
||||
|
||||
this->Output.clear();
|
||||
this->Output = "";
|
||||
|
||||
std::vector<cmGeneratorExpressionEvaluator*>::const_iterator it
|
||||
= this->Evaluators.begin();
|
||||
@@ -91,7 +91,7 @@ const char *cmCompiledGeneratorExpression::Evaluate(
|
||||
this->Output += (*it)->Evaluate(&context);
|
||||
if (context.HadError)
|
||||
{
|
||||
this->Output.clear();
|
||||
this->Output = "";
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user