summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorYury G. Kudryashov <urkud.urkud@gmail.com>2012-02-26 22:15:51 (GMT)
committerBrad King <brad.king@kitware.com>2012-09-28 13:21:39 (GMT)
commit4e2347cbf39ab72f9bf4ca8bdac7dbecd0143dde (patch)
tree43cefaf90cda3feac1bb768488bba0cd9bcfaa07 /Source
parente846e7031fd16ac3e3418ca3a6871aa3f1b6a822 (diff)
downloadCMake-4e2347cbf39ab72f9bf4ca8bdac7dbecd0143dde.zip
CMake-4e2347cbf39ab72f9bf4ca8bdac7dbecd0143dde.tar.gz
CMake-4e2347cbf39ab72f9bf4ca8bdac7dbecd0143dde.tar.bz2
exports: Rename cmGlobalGenerator::AddTargetToExport{s,}
This function adds target to one export, not to several exports.
Diffstat (limited to 'Source')
-rw-r--r--Source/cmGlobalGenerator.cxx2
-rw-r--r--Source/cmGlobalGenerator.h2
-rw-r--r--Source/cmInstallCommand.cxx16
3 files changed, 3 insertions, 17 deletions
diff --git a/Source/cmGlobalGenerator.cxx b/Source/cmGlobalGenerator.cxx
index 77274dc..15edfec 100644
--- a/Source/cmGlobalGenerator.cxx
+++ b/Source/cmGlobalGenerator.cxx
@@ -1466,7 +1466,7 @@ void cmGlobalGenerator::AddInstallComponent(const char* component)
}
}
-void cmGlobalGenerator::AddTargetToExports(const char* exportSetName,
+void cmGlobalGenerator::AddTargetToExport(const char* exportSetName,
cmTargetExport *te)
{
if ((exportSetName) && (*exportSetName) && (te))
diff --git a/Source/cmGlobalGenerator.h b/Source/cmGlobalGenerator.h
index 29f11e1..5408c7e 100644
--- a/Source/cmGlobalGenerator.h
+++ b/Source/cmGlobalGenerator.h
@@ -154,7 +154,7 @@ public:
{ return &this->InstallComponents; }
///! Add one installed target to the sets of the exports
- void AddTargetToExports(const char* exportSet, cmTargetExport* te);
+ void AddTargetToExport(const char* exportSet, cmTargetExport* te);
///! Get the export target set with the given name
const std::vector<cmTargetExport*>* GetExportSet(const char* name) const;
diff --git a/Source/cmInstallCommand.cxx b/Source/cmInstallCommand.cxx
index de92538..62fc2ef 100644
--- a/Source/cmInstallCommand.cxx
+++ b/Source/cmInstallCommand.cxx
@@ -745,24 +745,10 @@ bool cmInstallCommand::HandleTargetsMode(std::vector<std::string> const& args)
te->LibraryGenerator = libraryGenerator;
te->RuntimeGenerator = runtimeGenerator;
this->Makefile->GetLocalGenerator()->GetGlobalGenerator()
- ->AddTargetToExports(exports.GetCString(), te);
+ ->AddTargetToExport(exports.GetCString(), te);
}
}
-
- // Add this install rule to an export if one was specified and
- // this is not a namelink-only rule.
- if(!exports.GetString().empty() && !namelinkOnly)
- {
- this->Makefile->GetLocalGenerator()->GetGlobalGenerator()
- ->AddTargetToExports(exports.GetCString(), &target,
- archiveGenerator, runtimeGenerator,
- libraryGenerator, frameworkGenerator,
- bundleGenerator, publicHeaderGenerator);
- }
- }
-
-
// Tell the global generator about any installation component names
// specified
if (installsArchive)