PCH: Generate all precompiled headers without a full build
If you are using a tool which leverages
compile_commands.json all the files which are being referenced in it might need to exist.
clang-tidy for instance uses it to get the compilation options including the
-include which does not exist without any build. So if you just generate the project and use precompiled header clang-tidy will fail. (Depending on your CMake configuration) it does not require a build. But if you are using precompiled header you have to build it first now.
It would be great if there were an internal target like
precompiled to generate these or an option which would already generate them at configuration time (if that is even possible). Right now you would have to maintain a list of precompiled headers targets which need to be build beforehand.