VS: Occasional problems with precompiled headers
We experience occasional issues with using the VisualStudio-16 generator and precompiled header files.
We use the precompiled header feature in a pretty straightforward way
add_library(foo)
target_precompiled_headers(foo PRIVATE foo_precompiled.h)
The problem manifests itself in a .vcxproj file that uses the precompiled header for all sources, but does not actually generate it. This happened in single instances rarely with some users, currently we have a developer that had this repeatedly (cleaning the whole working copy, running CMake and getting the incorrect output). CMake versions are 3.16.3 upwards.
I just create this issue to raise the problem in general. I hope the investigation of the latest problem turns up more details.
Edited by Brad King