VS: cmake files closed when reloading project
I'm using Visual Studio 2017. It seems that Visual Studio closes files which are not part of the project when the project is reloaded. E.g. if I have include(MyFunction.cmake) in a CMakeLists.txt, and the edit MyFunction.cmake, then on the next build, cmake is rerun and the project is reloaded afterwards, which closes MyFunction.cmake which I was just editing. This is a bit inconvenient. ;-)
This happens also with other files which are not known as a source file of the project, but for the cmake files it is especially unpleasant, since 1) cmake knows about them, and 2) editing one of them always triggers a rerun of cmake so it will be closed just after editing it.