BUG: get all the output including the last character
This commit is contained in:
parent
9b54cdb7e8
commit
8cdb9a316f
|
@ -111,7 +111,7 @@ bool cmExecProgramCommand::InitialPass(std::vector<std::string> const& args)
|
||||||
{
|
{
|
||||||
std::string::size_type first = output.find_first_not_of(" \n\t\r");
|
std::string::size_type first = output.find_first_not_of(" \n\t\r");
|
||||||
std::string::size_type last = output.find_last_not_of(" \n\t\r");
|
std::string::size_type last = output.find_last_not_of(" \n\t\r");
|
||||||
std::string coutput = std::string(output, first, last);
|
std::string coutput = std::string(output, first, last-first+1);
|
||||||
m_Makefile->AddDefinition(output_variable.c_str(), coutput.c_str());
|
m_Makefile->AddDefinition(output_variable.c_str(), coutput.c_str());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue