[cmake-developers] [CMake 0012040]: Remove extra line breaks in Eclipse CDT
Mantis Bug Tracker
mantis at public.kitware.com
Mon Apr 4 03:46:22 EDT 2011
The following issue has been SUBMITTED.
======================================================================
http://public.kitware.com/Bug/view.php?id=12040
======================================================================
Reported By: Yuchen Deng
Assigned To:
======================================================================
Project: CMake
Issue ID: 12040
Category: CMake
Reproducibility: always
Severity: minor
Priority: normal
Status: new
======================================================================
Date Submitted: 2011-04-04 03:46 EDT
Last Modified: 2011-04-04 03:46 EDT
======================================================================
Summary: Remove extra line breaks in Eclipse CDT
Description:
Hi, CMake Term!
I found a issue, in Eclipse CDT, If a make target use the command like this:
cmake -E chdir ${ProjDirPath}/Build cmake -DCMAKE_BUILD_TYPE=Release ..
It will output extra line in log window.
Like the picture.
Here is the solution:
FILE: cmSystemTools.cxx
PATCH:
bool cmSystemTools::RunSingleCommand(std::vector<cmStdString>const& command,
std::string* output ,
int* retVal , const char* dir ,
bool verbose ,
double timeout )
{
...
for(int i=0; i < length; ++i)
{
if(data[i] == '\0' || data[i] == '\r') // PATCH IN HERE
{
data[i] = ' ';
}
}
}
======================================================================
Issue History
Date Modified Username Field Change
======================================================================
2011-04-04 03:46 Yuchen Deng New Issue
2011-04-04 03:46 Yuchen Deng File Added: 1.png
======================================================================
More information about the cmake-developers
mailing list