summaryrefslogtreecommitdiffstats
path: root/Source/cmExportInstallFileGenerator.h
diff options
context:
space:
mode:
authorBen Boeckel <ben.boeckel@kitware.com>2019-08-19 18:18:08 (GMT)
committerBen Boeckel <ben.boeckel@kitware.com>2019-08-20 14:15:03 (GMT)
commitd17580909f5c3bec2939b75549b7192500b8942d (patch)
tree71c5e1bfbf226dd71832b896a71b989ab88c6533 /Source/cmExportInstallFileGenerator.h
parenta18100898ae5188883acab295179c6758e84f496 (diff)
downloadCMake-d17580909f5c3bec2939b75549b7192500b8942d.zip
CMake-d17580909f5c3bec2939b75549b7192500b8942d.tar.gz
CMake-d17580909f5c3bec2939b75549b7192500b8942d.tar.bz2
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.
Diffstat (limited to 'Source/cmExportInstallFileGenerator.h')
-rw-r--r--Source/cmExportInstallFileGenerator.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/Source/cmExportInstallFileGenerator.h b/Source/cmExportInstallFileGenerator.h
index cbd6507..fcd1aca 100644
--- a/Source/cmExportInstallFileGenerator.h
+++ b/Source/cmExportInstallFileGenerator.h
@@ -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&);