cmake -G FASTBuild refuses duplicated POST_BUILD custom_commands.
I’ve created a simplified example here.
It seems that the label creation algorithm for add_custom_command depends on its contents and the exact same content creates the same labels.