how to avoid full rebuild after switching between commits?

Hello

I use ParaView build from source with VisualStudio + CMake, opened as folder, not as a project

Somehow, the project is completely rebuild after I switch between commits which only pertain to my custom plugin.
Did not get why it is so and how to disable it.

Any help would be greately appreciated

Thanks

Could you get the output of ninja -d explain when this happens to see what files ninja thinks changed such that everything needs rebuilt?

I think the sarting point is to use ninja instead of visual studio.

Why don’t you open Paraview as a project?