DEPFILE parsing does not properly handle enquoted filenames
Here is a sample project: CMTest.zip
Generate using cmake . -B .cmake -G "<Generatorname>"
Build using cmake --build .cmake
Version 3.21.1 on Windows x64.
Following problems found:
-
NMake generator: dependencies are not properly checked during the build. Copying is not performed after source change. Probably because path representation in main build makefile (binary dir relative) differs from representation in included dependency file (absolute). Works correct if filenames in .d file are not enquoted.
-
MSBuild generator:
A. Invalid pathname in *.AdditionalInputs:
C:\My\Development\CMTest\.cmake\"C:\My\Development\CMTest\test.txt"
B. Copying is always performed even if destination is up to date. This is not changed when using not enquoted file names.