Bug 318499 - targets not detected properly in cmake project
Summary: targets not detected properly in cmake project
Status: RESOLVED FIXED
Alias: None
Product: kdevelop
Classification: Applications
Component: Build tools: CMake (show other bugs)
Version: unspecified
Platform: Debian testing Linux
: NOR normal
Target Milestone: ---
Assignee: kdevelop-bugs-null
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-04-17 11:05 UTC by Hannes H
Modified: 2018-03-25 22:37 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Hannes H 2013-04-17 11:05:56 UTC
Both in the project view the actual targets (apps and tests) are not selectable and in the "Launch Configurations" the Project target dropdown is empty as well.

Reproducible: Always

Steps to Reproduce:
1. checkout SeqAn SVN from http://seqan.de
2. import project into Kdevelop
3. goto Projects toolview -> seqan-trunk/core/apps
Actual Results:  
none of the apps are selectable as build targets or "addable" to the build set. The parent directories are however

Expected Results:  
be able to select individual apps for compilation.
Comment 1 Aleix Pol 2013-04-23 00:31:04 UTC
Confirmed, this is because this "[!.]*" is being used but QRegExp doesn't support that yet, I'm unsure what we can do about it yet.
Comment 2 Hannes H 2013-04-23 10:32:04 UTC
(In reply to comment #1)
> Confirmed, this is because this "[!.]*" is being used but QRegExp doesn't
> support that yet, I'm unsure what we can do about it yet.

QtCreator 2.5.0 does detect the targets properly, maybe one can see how they do it?

Thanks for your help!
Comment 3 Aleix Pol 2013-09-25 01:11:43 UTC
Git commit 541481cadaa9336fdc46d0b30ea19b91213d8650 by Aleix Pol.
Committed on 25/09/2013 at 01:11.
Pushed by apol into branch 'master'.

Make it possible to glob directories

It should have worked as well with directories, not closing the bug since
[.*] is still unsupported.
We'll have to write a wildcard to regular expression conversor eventually
since QRegularExpression (in Qt5) doesn't support wildcards anyway.

M  +4    -6    projectmanagers/cmake/parser/cmakeprojectvisitor.cpp

http://commits.kde.org/kdevelop/541481cadaa9336fdc46d0b30ea19b91213d8650