diff options
author | Brad King <brad.king@kitware.com> | 2022-04-11 15:06:28 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2022-04-11 17:40:13 (GMT) |
commit | 8c65b7042e0e7bca3dc5c0cda8975fd2e9c6dc51 (patch) | |
tree | 340fba27fb9bd49f82197ba477939a2ee9bfcd2e /Source/cmExportInstallFileGenerator.h | |
parent | 7fc248bde34c529c6f1312a56c7e82303238b9c1 (diff) | |
download | CMake-8c65b7042e0e7bca3dc5c0cda8975fd2e9c6dc51.zip CMake-8c65b7042e0e7bca3dc5c0cda8975fd2e9c6dc51.tar.gz CMake-8c65b7042e0e7bca3dc5c0cda8975fd2e9c6dc51.tar.bz2 |
cmExportFileGenerator: Simplify collection of targets missing from export set
Store the list of missing target names in a member instead of threading
an explicit reference to it through the call stack.
Diffstat (limited to 'Source/cmExportInstallFileGenerator.h')
-rw-r--r-- | Source/cmExportInstallFileGenerator.h | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/Source/cmExportInstallFileGenerator.h b/Source/cmExportInstallFileGenerator.h index 9374c6b..86fb505 100644 --- a/Source/cmExportInstallFileGenerator.h +++ b/Source/cmExportInstallFileGenerator.h @@ -57,13 +57,11 @@ public: protected: // Implement virtual methods from the superclass. bool GenerateMainFile(std::ostream& os) override; - void GenerateImportTargetsConfig( - std::ostream& os, const std::string& config, std::string const& suffix, - std::vector<std::string>& missingTargets) override; + void GenerateImportTargetsConfig(std::ostream& os, const std::string& config, + std::string const& suffix) override; cmStateEnums::TargetType GetExportTargetType( cmTargetExport const* targetExport) const; void HandleMissingTarget(std::string& link_libs, - std::vector<std::string>& missingTargets, cmGeneratorTarget const* depender, cmGeneratorTarget* dependee) override; @@ -85,8 +83,7 @@ protected: virtual void CleanupTemporaryVariables(std::ostream&); /** Generate a per-configuration file for the targets. */ - virtual bool GenerateImportFileConfig( - const std::string& config, std::vector<std::string>& missingTargets); + virtual bool GenerateImportFileConfig(const std::string& config); /** Fill in properties indicating installed file locations. */ void SetImportLocationProperty(const std::string& config, |