fix dependency on exported targets if the variable is empty