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-rule_property
if-RULE-operator