This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Kdevelop & cmake

Tags: None
(comma "," separated)
martinv
Registered Member
Posts
2
Karma
0

Kdevelop & cmake

Fri Sep 19, 2014 12:11 pm
Hello, I can not configure my project from kdevelop. I click on Project -> Open/Import project, then navigate to my source folder and select CMakeLists.txt. I click on 'Next' and select cmake as project manager. A dialog window pops up where I can fill cmake extra arguments. My problem is that these arguments are always ignored, no matter what I do. Configuration from terminal is fine, configuration with qtcreator works correctly as well. Is this a bug?

I also tried custom build configuration, specified cmake as my executable during the configuration step and filled extra arguments. This crashes kdevelop every time I try to actually configure my project.

Another annoying thing is that once the build directory is configured and the project is open, it seems to be impossible to re-configure the build from within kdevelop, I can only see contents of cmake cache (which clearly shows that cmake ignored the extra arguments).

I'm using kdevelop 4.7.0 on Arch linux. Am I doing something wrong? Does kdevelop currently work with cmake? Thank you for any help.

Martin Vymazal
User avatar
apol
Registered Member
Posts
61
Karma
0
OS

Re: Kdevelop & cmake

Fri Sep 19, 2014 12:54 pm
Will have to investigate this, I think it works here. Would you mind reporting a bug? :)

Thanks a lot!
martinv
Registered Member
Posts
2
Karma
0

Re: Kdevelop & cmake

Fri Sep 19, 2014 1:40 pm
Hi,

in fact, it was my mistake, sorry. I tried to make a minimal working example to demonstrate the problem, but the example worked fine. Then I realized that the extra arguments I was passing to cmake contained environment variables like $HOME. Qtcreator knows how to expand them, and I just copy-pasted to Kdevelop. What I didn't realize is that Kdevelop would not process environment variables and instead, it silently dropped all arguments containing $HOME. My apologies.

Martin Vymazal
User avatar
scummos
Global Moderator
Posts
1175
Karma
7
OS

Re: Kdevelop & cmake

Fri Sep 19, 2014 2:15 pm
Ah, good, then at least the reason for your problem is clear now. This still sounds like a valid bug / wish request to me, you can report it if you like.


I'm working on the KDevelop IDE.


Bookmarks



Who is online

Registered users: Bing [Bot], daret, Google [Bot], Sogou [Bot]