| Summary: | reinstate building the default make target in project subdirs | ||
|---|---|---|---|
| Product: | [Applications] kdevelop | Reporter: | RJVB <rjvbertin> |
| Component: | Build tools: Make | Assignee: | kdevelop-bugs-null |
| Status: | REPORTED --- | ||
| Severity: | wishlist | CC: | mendola |
| Priority: | NOR | ||
| Version First Reported In: | git master | ||
| Target Milestone: | --- | ||
| Platform: | Compiled Sources | ||
| OS: | All | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
|
Description
RJVB
2016-05-17 14:59:14 UTC
Same here. Opening a CMAKE project, going on the Project pane I can see all my build tree, however doesn't matter which folder I choose to build it starts building from root. All this needs is someone to figure out the information flow from when you activate the Build command with a subdirectory selected in the Project manager to the Make build manager, extract the selected directory and tell Make manager to chdir there before calling make. In addition: Do you have the "Show Targets" option activate in the Project manager toolview (2nd toolbar button from the left)? If so, are the targets shown reliably? For me they are not, in fact in most projects they're not. It is true that most of the projects I use have been configured outside of KDevelop, but *with* creation of the compile_commands.json file. There is overlap between those foreign/imported projects and projects that don't show their targets but it's not a complete overlap. I was going to add that you could write an external script that does
cd `dirname %f` && make
but that fails for 2 reasons:
- as evident from the script command, you'd have to select a file in the folder of choice, which is counter-intuitive
- the correct dir to chdir to is not `dirname %f` but `build-directory-for %f`
Plus, selecting an external script via the project manager context menu currently doesn't work for me.
|