file(GENERATE): Re-run cmake if the input file changes
file(GENERATE): Re-run cmake if the output file is removed.
file(GENERATE): Use permissions of input file if present.
Merge topic 'file-GENERATE-fixes' into next

808f0b9a file(GENERATE): Use permissions of input file if present.
be4f3bdb file(GENERATE): Re-run cmake if the output file is removed.
1d17926b file(GENERATE): Re-run cmake if the input file changes