As mentioned above (https://github.com/raptort3000/ublox_catkin/pull/1/files#r4598490) you must check that the target exists. Currently CMake will not complain but in an upcoming version it does.

It would be totally fine to use the dependency on `ublox_msgs_generate_messages_cpp` forever. There is no need to use the variable in the future instead.