Is there a way to make the extension delete the CMakeCache.txt when switching presets? #3333
-
I'm using CMake Presets (with a CMakePresets.json file) and I have a preset configuration for building on the host arch and one for cross-compiling to Android using the NDK. Currently, if I just switch presets, certain cache variables like Is there a way to have the extension just delete the cache file for me when I switch configs? Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
There isn't anything explicit in our extension that, by default, deletes the cache file fully when you switch configurations. However, we do have a setting now that, upon a "Clean Configure", we ensure to delete the entire build directory. You could set this and then do a clean configure rather than having to manually delete things. |
Beta Was this translation helpful? Give feedback.
There isn't anything explicit in our extension that, by default, deletes the cache file fully when you switch configurations. However, we do have a setting now that, upon a "Clean Configure", we ensure to delete the entire build directory.
cmake.deleteBuildDirOnCleanConfigure
.You could set this and then do a clean configure rather than having to manually delete things.