cmExportInstallFileGenerator: improve error message

Following commit 49cfd390 (cmExportBuildFileGenerator: improve error
message, 2019-06-26), improve the error message related to installed
export sets by referencing the files which contain the exported target
ambiguously.
This commit is contained in:
Ben Boeckel
2019-08-19 14:18:08 -04:00
parent a18100898a
commit d17580909f
4 changed files with 29 additions and 20 deletions

View File

@@ -12,6 +12,7 @@
#include <map>
#include <set>
#include <string>
#include <utility>
#include <vector>
class cmGeneratorTarget;
@@ -70,10 +71,10 @@ protected:
void ComplainAboutMissingTarget(cmGeneratorTarget* depender,
cmGeneratorTarget* dependee,
int occurrences);
std::vector<std::string> const& exportFiles);
std::vector<std::string> FindNamespaces(cmGlobalGenerator* gg,
const std::string& name);
std::pair<std::vector<std::string>, std::string> FindNamespaces(
cmGlobalGenerator* gg, const std::string& name);
/** Generate the relative import prefix. */
virtual void GenerateImportPrefix(std::ostream&);