fileapi: Support for Single File Compile
The feature request is for CMake to surface the ability to build individual source files.
Invoking single file compilation today relies on invoking specific generators (Ninja and VS) on single source files to build the resulting object file. This approach relies on the existence of implicit targets and correctly asserting their expected output location. Surfacing the expected output location for a given source file through the FileAPI response could be one option for CMake to support this scenario.
Another approach here is directly invoking the compiler with information from the FileAPI response, but the fragments are incomplete (#23760).
Another request for individual file compilation has previously been posted: #15465