diff options
author | Alex Neundorf <neundorf@kde.org> | 2012-09-28 21:47:37 +0200 |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2012-09-30 10:26:10 -0400 |
commit | 0cfd055acda3543d66690b5e92d8ee7c20e0654f (patch) | |
tree | f034d09d81d1c9a0c7f4203cb87d1d3db667046e /Source/cmExportFileGenerator.h | |
parent | 190f2c8253910a9e6870948df58a87950e7b4185 (diff) | |
download | cmake-0cfd055acda3543d66690b5e92d8ee7c20e0654f.tar.gz |
exports: move the handling of missing targets into subclasses
Before, cmExportFileGenerator::ComplainAboutMissingTarget() was a virtual
function which had to be implemented in the subclasses. It is not
anymore. Instead, there is now a virtual function
HandleMissingTargets(), which is implemented in the two subclasses.
This makes e.g. dealing correctly with APPEND mode easier.
Alex
Diffstat (limited to 'Source/cmExportFileGenerator.h')
-rw-r--r-- | Source/cmExportFileGenerator.h | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/Source/cmExportFileGenerator.h b/Source/cmExportFileGenerator.h index 5a99b54253..70bc65de5e 100644 --- a/Source/cmExportFileGenerator.h +++ b/Source/cmExportFileGenerator.h @@ -84,15 +84,13 @@ protected: const char* config, std::string const& suffix) = 0; - /** Each subclass knows how to complain about a target that is - missing from an export set. */ - virtual void ComplainAboutMissingTarget(cmTarget* depender, - cmTarget* dependee, - int occurrences) = 0; - - std::vector<std::string> FindNamespaces(cmMakefile* mf, - const std::string& name); - + /** Each subclass knows how to deal with a target that is missing from an + * export set. */ + virtual void HandleMissingTarget(std::string& link_libs, + std::vector<std::string>& missingTargets, + cmMakefile* mf, + cmTarget* depender, + cmTarget* dependee) = 0; // The namespace in which the exports are placed in the generated file. std::string Namespace; |