Skip to content

file(GENERATE): Fix using 'foo.tmp' as input for output 'foo'

Brad King requested to merge brad.king/cmake:file-GENERATE-tmp into master

Revise file(GENERATE) to use a random suffix on its temporary file name to avoid clobbering its own input.

Fixes: #20873 (closed)

Merge request reports