Attached Files | cmLocalKdevelopGenerator.cxx.diff [^] (1,372 bytes) 1969-12-31 19:00 [Show Content] [Hide Content]Index: cmLocalKdevelopGenerator.cxx
===================================================================
RCS file: /cvsroot/CMake/CMake/Source/cmLocalKdevelopGenerator.cxx,v
retrieving revision 1.11
diff -b -u -p -r1.11 cmLocalKdevelopGenerator.cxx
--- cmLocalKdevelopGenerator.cxx 3 Nov 2004 12:51:51 -0000 1.11
+++ cmLocalKdevelopGenerator.cxx 6 Dec 2004 15:24:10 -0000
@@ -328,7 +328,12 @@ bool cmLocalKdevelopGenerator::CreateFil
for (std::vector<cmSourceFile*>::const_iterator si=sources.begin();
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();
lt!=listFiles.end(); lt++)
@@ -373,7 +378,7 @@ bool cmLocalKdevelopGenerator::CreateFil
for (std::set<cmStdString>::const_iterator it=files.begin(); it!=files.end(); it++)
{
// 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
cmSystemTools::ReplaceString(tmp, projectDir.c_str(), "");
// only put relative paths
|