fileapi: Misses Some Compiler Fragments from Generators
CMake version: 3.23.2 Affected Generators: ninja, Visual Studio generators.
Repro steps for Ninja
- Clone https://github.com/eladmaimoni/cmake_precompiled_issues.
- Open the folder in VS, select "windows-x64-debug-ninja" configuration and reconfigure CMake. (This is to generate FILE API logs)
- From VS Developer Command Prompt, Run ninja command to build the main.cpp file and note that there are /Fd and /FS arguments in compiling main.cpp.
- Examine File API response and note that there are NO /Fd and /FS arguments.
Repro steps for Visual Studio
- Clone https://github.com/eladmaimoni/cmake_precompiled_issues.
- Open the folder in VS, select "vs2022-ide-debug-only" configuration and reconfigure CMake. (This is to generate FILE API logs)
- From VS Developer Command Prompt, Run "msbuild main\main.vcxproj /t:ClCompile /p:SelectedFiles=main.cpp" command to build the main.cpp file and note that there are /Fd and some other arguments in compiling main.cpp.
- Examine File API response and note that there are NO /Fd etc. arguments.
Edited by Brad King