Not to restate the obvious, but this error means that there is a problem with either your cmake file, or the file it is referencing.
Can you provide more info? What is your intent? Can you share the location and contents of the topics_25_generate_messages_cpp file? There are several things that can cause cmake errors