target_precompile_headers: Fix documented example using genex
When the path to a header file is specified using a generator expression, evaluation of the genex must produce an absolute path. Update our documented example and add a test covering the case.
Fixes: #20617 (closed)
Backport: release