-
Notifications
You must be signed in to change notification settings - Fork 462
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Initially select a target that is different from "all" #174
Comments
But this is consistent with the default behavior of CMake and make: if you just run |
Sorry for the delay. The current behavior of the extension is indeed the same as make's. In the case of make, (or any "build" tool) this makes perfect sense. After all, we use make to "build" a (potentially multi-sub-project) project and it's convenient if it builds all its sub-projects by default. I would like to argue that, in the case of an "IDE" (or a code editor with IDE-like features, which VSCode is) it makes more sense to select a single target at any given time:
Alternatively, it might be useful (at least to other extensions) if this extension provided an API for selectong the current target. |
Hi, maybe this could be selected with a simple option, something like |
I would just remember last selected target and preserve across runs. Initially selected target doesn't really matter - it most likely will be wrong. |
@dcourtois sure! I would suggest somerhing like "cmake.defaultTarget": "all|first_parsed_target|whatever" @ytimenkov yes, it would be great if the selected target were preserved across runs How about combining both ideas?
|
This issue is now marked as 'stale-old' due to there being no activity on it for the past 720 days. Unless the 'stale-old' label is removed or the issue is commented on, this will be remain open for at least 14 days and then it may be closed. If you would like to make this issue exempt from getting stale, please add the 'stale-exempt' label. |
This issue is now closed due to there being no activity on it for the past 14 days since being marked as 'stale-old'. |
Currently, after configuring the project for the first time or when opening an already-configured project, CMake Tools selects the "all" build target by default.
I would like to suggest that the extension selects the first target that is declared using
add_executable()
oradd_library()
instead of "all".The text was updated successfully, but these errors were encountered: