Ninja generator: restore correct encoding for policy CMP0181=OLD

Fixes: #26857
9 files changed