Do you need to set the ${ublox_msgs_EXPORTED_TARGETS} cmake variable to something?  Or does genmsg set it for you?  If this is what fixes the problem, why would it be empty?