diff options
author | Alex Neundorf <neundorf@kde.org> | 2012-09-15 21:55:24 +0200 |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2012-09-28 09:21:42 -0400 |
commit | 87f4c01910754199bcdcbc9d564de13d36ba2502 (patch) | |
tree | 82542c001615b1b8fb32d82ce28cd6358affa9ae /Source/cmInstallExportGenerator.h | |
parent | 999061a4c2000213e6f04695f1f1fe546c86703d (diff) | |
download | cmake-87f4c01910754199bcdcbc9d564de13d36ba2502.tar.gz |
exports: accept a missing target if it is exported exactly once
If a target is exported, and a library it depends on is not part
of the same export set, before this patch cmake errored out.
With this patch, it now checks whether the missing target
is exported somewhere else exactly once, and accepts in this
case (because then it can determine the namespace for the
missing target and use this).
Alex
Diffstat (limited to 'Source/cmInstallExportGenerator.h')
-rw-r--r-- | Source/cmInstallExportGenerator.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Source/cmInstallExportGenerator.h b/Source/cmInstallExportGenerator.h index 8ae271b7eb..ee92906fe8 100644 --- a/Source/cmInstallExportGenerator.h +++ b/Source/cmInstallExportGenerator.h @@ -34,7 +34,10 @@ public: cmMakefile* mf); ~cmInstallExportGenerator(); - cmExportSet* GetExportSet() {return ExportSet;} + cmExportSet* GetExportSet() {return this->ExportSet;} + + const std::string& GetNamespace() const { return this->Namespace; } + protected: virtual void GenerateScript(std::ostream& os); virtual void GenerateScriptConfigs(std::ostream& os, Indent const& indent); |