fix add_dependencies for empty export targets