PCH: Copy the timestamp from an absolute header file

If target_precompile_headers contains a file from the project, then CMake will set the timestamp for cmake_pch.h|xx from that file.

This helps with ccache and precompile headers.

Fixes: #19923 (closed)
Backport: release

Edited by Brad King

Merge request reports

Loading