diff options
author | Ben Boeckel <ben.boeckel@kitware.com> | 2019-08-19 18:18:08 (GMT) |
---|---|---|
committer | Ben Boeckel <ben.boeckel@kitware.com> | 2019-08-20 14:15:03 (GMT) |
commit | d17580909f5c3bec2939b75549b7192500b8942d (patch) | |
tree | 71c5e1bfbf226dd71832b896a71b989ab88c6533 /Source/cmExportInstallFileGenerator.h | |
parent | a18100898ae5188883acab295179c6758e84f496 (diff) | |
download | CMake-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.h | 7 |
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&); |