cmake: fix docs build

Closes #33356.

Signed-off-by: Tim D. Smith <git@tim-smith.us>