Commit c87d222c authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧

Don't add build directories if they are under the project root.

parent 77b0961f
......@@ -452,9 +452,12 @@ QList<KDevelop::ProjectFolderItem*> CMakeProjectManager::parse( KDevelop::Projec
KUrl folderurl = item->url();
folderurl.addPath( entry );
if( QFileInfo( folderurl.toLocalFile() ).isDir() )
KUrl cache=folderurl;
cache.addPath("CMakeCache.txt");
if( QFileInfo( folderurl.toLocalFile() ).isDir())
{
folderList.append(new KDevelop::ProjectFolderItem( item->project(), folderurl, item ));
if(!QFile::exists(cache.toLocalFile()))
folderList.append(new KDevelop::ProjectFolderItem( item->project(), folderurl, item ));
}
else
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment