Skip to content

cmNinjaTargetGenerator: pass the absolute path as the sourcefile

Ben Boeckel requested to merge ben.boeckel/cmake:ninja-rc-regression into master

In 955c2a63, the source path was changed to use an absolute path. Inside of cmcldeps for .rc file compilation, it uses a separate argument for the path to the source file. This ended up causing cmcldeps to transform the following call:

cmcldeps.exe RC source.rc ... C:/full/path/to/source.rc

into:

... C:/full/path/to//Tc source.rc

which is invalid. Update the source filename to use the full path to the source file so that the path is replaced properly.

Merge request reports