MS Visual Studio: menu entry "Compile file (Ctrl+F7)" missing in cmake-generated project


recently I started using Visual Studio (not Visual Studio Code) with an CMake-generated project (3.24). I noticed that in the “Build” menu the “Compile file (Ctrl+F7)” entry is missing, which is quite useful.

Does somebody know why it is missing ?
Did I forget something or do something wrong in my CMake files ?

Thanks for any pointers

Are you using the VS generator or the support for “opening” an existing build (probably using the Ninja generator)?

The VS generator.

I created a new buildtree, “Compile file” is there now.
I’ll keep an eye on whether it happens again that it disappears.

Sorry for the noise.