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

Yavuz Mert yavuzmertt at gmail.com
Fri May 13 16:03:30 BST 2016


Sorry, my bad. Now I see your point, you are right.
In 4.7 I can build the sub directory with context menu.
Since I generally create sub targets in sub directories, I do not need that, 
but yes, there may be cases to build in the specific directory.

On Friday 13 May 2016 16:39:32 René J.V. Bertin wrote:
> 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