summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/BuildDepends/WriteDepfile.cmake
blob: c958cdebca7be73a21b1b8587f7ba0bcf6e3a44a (plain)
1
2
3
4
5
6
7
8
file(WRITE "${OUTFILE}" [[int main(void)
{
  return 0;
}
]])
string(REPLACE [[ ]] [[\ ]] OUTFILE "${OUTFILE}")
string(REPLACE [[ ]] [[\ ]] INFILE "${INFILE}")
file(WRITE "${DEPFILE}" "${OUTFILE}: ${INFILE}\n")