Index: projectmanagers/cmake/cmakemanager.cpp
===================================================================
--- projectmanagers/cmake/cmakemanager.cpp	(revision 1049561)
+++ projectmanagers/cmake/cmakemanager.cpp	(working copy)
@@ -135,7 +135,9 @@
             s= replaceInstallDir(s, installDir);
         }
 //         kDebug(9042) << "resolving" << _s << "to" << s;
-        newList.append(KUrl(s));
+        KUrl url(s);
+        url.cleanPath();
+        newList.append(url);
     }
     return newList;
 }

