The if() command gained a PATH_IS_PREFIX operator to test whether one path is a prefix of another without accessing the filesystem. See policy CMP0222.
if()
PATH_IS_PREFIX
CMP0222
genex-list-transform-apply
install-exit-code-fidelity