[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    kdevelop/parts/autoproject
From:       Falk Brettschneider <falk.brettschneider () gmx ! de>
Date:       2003-03-28 22:03:59
[Download RAW message or body]

CVS commit by falkbr: 

KDE 3.0 compile fix


  M +9 -0      autoprojectpart.cpp   1.78


--- kdevelop/parts/autoproject/autoprojectpart.cpp  #1.77:1.78
@@ -37,4 +37,5 @@
 #include <kmessagebox.h>
 #include <kparts/part.h>
+#include <kdeversion.h>
 
 #include <domutil.h>
@@ -463,5 +464,13 @@ void AutoProjectPart::queueInternalLibDe
     if (dependency.startsWith("$(top_builddir)/")) {
       // These are the internal libraries
+#if KDE_VERSION > 305   
       dependency.remove("$(top_builddir)/");
+#else
+      QString topBuildDirStr("$(top_builddir)/");
+      int i = dependency.find(topBuildDirStr);
+      if (i != -1) {
+          dependency.remove(i, i + topBuildDirStr.length() - 1);
+      }
+#endif
       tdir = buildDirectory();
       if (!tdir.endsWith("/") && !tdir.isEmpty())


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic