IN_LIST generator-expression does not work as expected

Hmmm…
There might be some miss understanding.
By “expand", do you mean ${CMAKE_VAR}?
If it is, then expanding CMake variables for IN_LIST only does not work either.
It’s the double quotation marks that fix my example.