IN_LIST generator-expression does not work as expected

AFAIK they do.
That’s because the CMake variables do not exist anymore when the genex gets evaluated.