Skip to content

target_precompile_headers: Fix documented example using genex

Brad King requested to merge brad.king/cmake:pch-genex-absolute into master

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

Merge request reports