BUG: Applied patch attached to bug #1453.
This commit is contained in:
parent
96cdce0083
commit
8032c5cd88
|
@ -328,7 +328,12 @@ bool cmLocalKdevelopGenerator::CreateFilelistFile(const std::string& outputDir,
|
||||||
for (std::vector<cmSourceFile*>::const_iterator si=sources.begin();
|
for (std::vector<cmSourceFile*>::const_iterator si=sources.begin();
|
||||||
si!=sources.end(); si++)
|
si!=sources.end(); si++)
|
||||||
{
|
{
|
||||||
files.insert((*si)->GetFullPath());
|
tmp=(*si)->GetFullPath();
|
||||||
|
cmSystemTools::ReplaceString(tmp, projectDir.c_str(), "");
|
||||||
|
if (tmp[0]!='/')
|
||||||
|
{
|
||||||
|
files.insert(tmp);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
for (std::vector<std::string>::const_iterator lt=listFiles.begin();
|
for (std::vector<std::string>::const_iterator lt=listFiles.begin();
|
||||||
lt!=listFiles.end(); lt++)
|
lt!=listFiles.end(); lt++)
|
||||||
|
@ -373,7 +378,7 @@ bool cmLocalKdevelopGenerator::CreateFilelistFile(const std::string& outputDir,
|
||||||
for (std::set<cmStdString>::const_iterator it=files.begin(); it!=files.end(); it++)
|
for (std::set<cmStdString>::const_iterator it=files.begin(); it!=files.end(); it++)
|
||||||
{
|
{
|
||||||
// get the full path to the file
|
// get the full path to the file
|
||||||
tmp=cmSystemTools::CollapseFullPath(it->c_str());
|
tmp=cmSystemTools::CollapseFullPath(it->c_str(), projectDir.c_str());
|
||||||
// make it relative to the project dir
|
// make it relative to the project dir
|
||||||
cmSystemTools::ReplaceString(tmp, projectDir.c_str(), "");
|
cmSystemTools::ReplaceString(tmp, projectDir.c_str(), "");
|
||||||
// only put relative paths
|
// only put relative paths
|
||||||
|
|
Loading…
Reference in New Issue