fix add_dependencies for empty export targets

regression of my last change 54c3d1ce599f1d9b5af181aa56632fc19d5dc91b