Compile current file only (cmake project)
Andreas Pakulat
apaku at gmx.de
Wed Nov 7 09:51:11 GMT 2012
Hi,
On Wed, Nov 7, 2012 at 10:35 AM, Michael George Hart
<michael.george.hart at gmail.com> wrote:
> I went through this conversation a few months ago and got nowhere with the
> answers I was getting. Either "build selection" does not work or its meaning
> has come to mean as I currently mean; that Is build a particular project of
> a session that has multiple projects. To this date I have not been able to
> figure out how to select just one file of a project a build just that. I
> often wonder why such a obvious feature that existed in Kdevelop 3.x does
> not exist in 4.x
>
> If you figure it out please let me know
As I said in the other, "Build Selection" will build all the items
listed in the lower list in the Projects view. You can add to/remove
from that list using the +/- buttons right above it.
What I forgot to mention there: You can also leave the list empty, in
that case the selection will be whatever is selected inside the
projects view.
Note though that wether or not building individual files depends on
the buildsystem, for cmake it should work as long as our cmake plugin
can figure out the right subdirectory and a make foo.o in that
directory actually works. I don't think any of the other project
builders supports building individual files.
Andreas
More information about the KDevelop
mailing list