"Build" command in a project's subdirectory (CMake project)

René J.V. Bertin rjvbertin at gmail.com
Fri May 13 15:39:32 BST 2016


On Friday May 13 2016 17:13:08 Yavuz Mert wrote:

> If that is selected I can right click the target and build the individual 
> target, but not the directory.

Yes.

> I checked with Kdevelop 4.7 and it also acts the same way, you can build 
> individual cmake targets, but not the subdirectory. The only difference I can 
> see is on 4.7 the targets are always shown, there is no checkbutton. So, 
> AFAICS the functionality is same.

Do you have things configured to use CMake's Ninja generator instead of the "Unix Makefiles" generator?
That one indeed behaves like that; it can hardly do any different since you only get a .ninja file in the top level directory.
But I double-checked: this is the 1st line of KDevelop 4.7's Build view after I hit Build with a subdir. selected (build.dir shortened):

/.../kf5-kdevplatform-devel/work/build/plugins/grepview> wmake --nice 10 -w VERBOSE=1

That first line is followed by significantly fewer further output lines
(wmake is a wrapper script of my own).


R



More information about the KDevelop mailing list