diff options
author | Brad King <brad.king@kitware.com> | 2005-01-04 14:56:33 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2005-01-04 14:56:33 (GMT) |
commit | 8032c5cd886ece2c18b4a4b04117efdeafa23088 (patch) | |
tree | 5d4a5d78f72866e49dad301921c3e19b887287c7 /Source/cmLocalKdevelopGenerator.cxx | |
parent | 96cdce0083c66c9966585bffa03f5174119ab01f (diff) | |
download | CMake-8032c5cd886ece2c18b4a4b04117efdeafa23088.zip CMake-8032c5cd886ece2c18b4a4b04117efdeafa23088.tar.gz CMake-8032c5cd886ece2c18b4a4b04117efdeafa23088.tar.bz2 |
BUG: Applied patch attached to bug #1453.
Diffstat (limited to 'Source/cmLocalKdevelopGenerator.cxx')
-rw-r--r-- | Source/cmLocalKdevelopGenerator.cxx | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/Source/cmLocalKdevelopGenerator.cxx b/Source/cmLocalKdevelopGenerator.cxx index c5821d0..2ca9c22 100644 --- a/Source/cmLocalKdevelopGenerator.cxx +++ b/Source/cmLocalKdevelopGenerator.cxx @@ -328,7 +328,12 @@ bool cmLocalKdevelopGenerator::CreateFilelistFile(const std::string& outputDir, 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::CreateFilelistFile(const std::string& outputDir, 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 |