[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdevelop/projectmanagers/cmake
From: Aleix Pol Gonzalez <aleixpol () gmail ! com>
Date: 2009-05-13 23:59:28
Message-ID: 1242259168.818718.1929.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 967787 by apol:
Let the user to add absolute paths in CMake projects.
M +10 -3 cmakemanager.cpp
--- trunk/KDE/kdevelop/projectmanagers/cmake/cmakemanager.cpp #967786:967787
@@ -518,9 +518,16 @@
{
if(subf.isEmpty()) //This would not be necessary if we didn't parse the wrong lines
continue;
- KUrl path(folder->url());
- path.addPath(subf);
- path.adjustPath(KUrl::AddTrailingSlash);
+
+ KUrl path;
+ if(KUrl::isRelativeUrl(subf))
+ path=KUrl(subf);
+ else
+ {
+ path=KUrl(folder->url());
+ path.addPath(subf);
+ path.adjustPath(KUrl::AddTrailingSlash);
+ }
kDebug(9042) << "Found subdir " << path << "which should be into" << subroot;
if(subroot.isParentOf(path) || path.isParentOf(subroot))
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic