No, there’s no functionality for this. I don’t think it should be done anyways because then there’s yet another “language” for logic available through CMake code. Just put the logic in the CMake code around the configure_file and it can be as complex as you want.