vscode-cmake-tools icon indicating copy to clipboard operation
vscode-cmake-tools copied to clipboard

cmake.skipConfigureWhenCachePresent should also apply to switching variants

Open bobbrow opened this issue 5 years ago • 4 comments

This issue doesn't seem to be entirely resolved. I have two variants Debug vs. Release, which use two different build directories ("build/Debug" and "build/Release") and therefore caches. Even if I set "Skip over the configure process if cache is present", configure seems to always rerun upon switching between the variants. Is there currently a way to prevent this, or does this require a fix?

I can confirm that in other circumstances this fix/option seems to do the right thing: If I simply stop the build and restart (without switching variants) I see the following in the output and configure is indeed skipped:

The extension determined that a configuration is needed at this moment but we are skipping because the setting cmake.skipConfigureWhenCachePresent is ON. Make sure the CMake cache is in sync with the latest configuration changes.

Originally posted by @wkjarosz in https://github.com/microsoft/vscode-cmake-tools/issues/984#issuecomment-920242135

bobbrow avatar Sep 15 '21 18:09 bobbrow

This would be a wonderful addition to the feature. We're working on a large project that takes quite some time to configure and every time we switch the build variant (which happens frequently), CMake reconfigures itself (even when there was no change at all). Are there any updates on this? Thank you!

malchera avatar Mar 16 '23 11:03 malchera

No updates at this point, but I see you've upvoted the issue (thanks!) which is how we typically prioritize requests. We're also happy to accept a PR for this change if someone else gets to it first.

benmcmorran avatar Mar 24 '23 17:03 benmcmorran

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.

github-actions[bot] avatar Nov 07 '26 08:11 github-actions[bot]

Please don't close

bam80 avatar Nov 07 '26 10:11 bam80