-
Notifications
You must be signed in to change notification settings - Fork 461
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
Different build directories for different build types #559
Comments
Check here. Set |
Thanks for the quick response! It partially solves my problem because I got two Debug and two Release configurations and I wanted to have it all in separate build directories if possible.
|
That is also supported, but using this |
I was about to file a similar issue, this is really helpful. I'm having trouble figuring out how this interacts with launch.json, however. Is it possible to get the path to the current CMake build directory in launch.json via variable substitution somehow? Is there some documentation on the list of vscode-cmake-tools commands that can be used with the |
In general any palette command works with The variable substitutions supported by CMake Tools in |
Sorry for being a pain but I have no idea how to use it 😄 |
Filed #564 requesting variable substitution for As a follow-on dumb question:
I've always had trouble figuring out the appropriate |
@Sarna555, Another example: Using |
Is it possible to set |
Thanks. I know that. I just think it might be worth considering to make it the default option after install this extension. |
@xgdgsc Agree. This is such a basic feature and it should really be the default behaviour of the extension. For example, CLion uses |
The trouble is that some generators only need a single configure step because they generate all variants up front. If the default were based on the buildType, then those generators would have to generate their build rules in N different places even though they are all basically copies of each other. VS Code doesn't give us an way to have conditional defaults, so this is the least disruptive default. |
Brief Issue Summary
Different build directory for different build type
Expected:
For instance,
I got Debug and Release build types.
I want to build Debug in "Build-Debug" and Release in "Build-Release" directories.
Of course I want it preconfigured without having to change this every time I change build type.
Other Notes/Information
Sorry if it's possible and I haven't found it.
The text was updated successfully, but these errors were encountered: