Generator Expressions in add_custom_command COMMENT field

Im trying to add a custom command, which is working fine except the “comment” section
add_custom_command(TARGET shared_lib POST_BUILD
COMMAND “${CMAKE_COMMAND}” -E copy “$<TARGET_FILE:shared_lib>” “$<TARGET_FILE_DIR:mainapp>/styles”
COMMENT “Adding shared lib file $<TARGET_FILE:shared_lib> to MainAppProject…\n”
)

The comment when run is
Adding shared lib file $^<TARGET_FILE:shared_lib^> to MainAppProject…

Where I would like to print out the actual file path being copied

It seems that the COMMENT bit is not genex-expanded. Please file an issue to add this support.

Done
https://gitlab.kitware.com/cmake/cmake/-/issues/22507