Bug 192610 - KDevCMakeManager confused by two included directories with same name
Summary: KDevCMakeManager confused by two included directories with same name
Status: VERIFIED FIXED
Alias: None
Product: kdevelop
Classification: Applications
Component: Build tools: CMake (show other bugs)
Version: unspecified
Platform: Gentoo Packages Linux
: NOR normal
Target Milestone: ---
Assignee: kdevelop-bugs-null
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-05-13 23:28 UTC by jmachowinski
Modified: 2009-05-31 16:14 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
test scenario for the bug (1.13 KB, application/x-compressed-tar)
2009-05-13 23:29 UTC, jmachowinski
Details

Note You need to log in before you can comment on or make changes to this bug.
Description jmachowinski 2009-05-13 23:28:51 UTC
Version:            (using KDE 4.2.3)
Compiler:          gcc-Version 4.3.2 (Gentoo 4.3.2-r3 p1.6, pie-10.1.5) 
OS:                Linux
Installed from:    Gentoo Packages

When using this layout 
./hbridge.kdev4
./CMakeLists.txt
./tasks
./tasks/test.cpp
./tasks/CMakeLists.txt
./tasks/test.hpp
./.kdev4
./.kdev4/hbridge.kdev4
./.orogen
./.orogen/tasks
./.orogen/tasks/bla.inst
./.orogen/tasks/testBase.cpp
./.orogen/tasks/testBase.hpp

Kdevelop does not recognise the files in any of the tasks directories.
As this is a simple test project I did to find the bug, I'll attach it
Comment 1 jmachowinski 2009-05-13 23:29:41 UTC
Created attachment 33644 [details]
test scenario for the bug
Comment 2 Aleix Pol 2009-05-14 01:53:14 UTC
The problem is the non-relative subdirectory adding. Nobody does that this way :P.

I'll fix it ASAP.

Thanks :)
Comment 3 Aleix Pol 2009-05-14 01:59:56 UTC
Fixed ^^
Comment 4 jmachowinski 2009-05-25 21:52:02 UTC
I'm sorry to reopen the bug, but it never worked for me. 
I'm using gentoo svn ebuild. 
Kdevelop and kdevplatform are at svn rev 972834.
Should I provide some debug logs ?
Comment 5 Andreas Pakulat 2009-05-25 22:36:53 UTC
I know Aleix comitted something related, but maybe he didn't catch all problems. I can also see the problem here - two "tasks" entries, but no ".orogen" and no files either.
Comment 6 Aleix Pol 2009-05-26 00:46:29 UTC
Well, this week I'm really busy. I'll take a look this weekend the later.

Sorry for that.
Comment 7 Aleix Pol 2009-05-30 18:07:56 UTC
SVN commit 975642 by apol:

Fixed the relative detection system. I'm not sure why didn't it work before.

This fix is leaving a tree that missrepresents the FS structure.

BUG: 192610


 M  +6 -7      cmakemanager.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=975642
Comment 8 Aleix Pol 2009-05-30 18:08:52 UTC
Just wondering... why don't you use the cmake-way to add subdirectories?
Comment 9 jmachowinski 2009-05-31 16:14:57 UTC
Tested it, and it works now ;-)
I have no influence on the cmake files, 
as the are generated together with some 
C++ classes.