|
|
@@ -17,6 +17,7 @@
|
|
|
#include "cmInstallTargetGenerator.h"
|
|
|
#include "cmInstallExportGenerator.h"
|
|
|
#include "cmInstallCommandArguments.h"
|
|
|
+#include "cmTargetExport.h"
|
|
|
|
|
|
#include <cmsys/Glob.hxx>
|
|
|
|
|
|
@@ -731,6 +732,24 @@ bool cmInstallCommand::HandleTargetsMode(std::vector<std::string> const& args)
|
|
|
this->Makefile->AddInstallGenerator(publicHeaderGenerator);
|
|
|
this->Makefile->AddInstallGenerator(resourceGenerator);
|
|
|
|
|
|
+ // Add this install rule to an export if one was specified and
|
|
|
+ // this is not a namelink-only rule.
|
|
|
+ if(!exports.GetString().empty() && !namelinkOnly)
|
|
|
+ {
|
|
|
+ cmTargetExport *te = new cmTargetExport;
|
|
|
+ te->Target = ⌖
|
|
|
+ te->ArchiveGenerator = archiveGenerator;
|
|
|
+ te->BundleGenerator = bundleGenerator;
|
|
|
+ te->FrameworkGenerator = frameworkGenerator;
|
|
|
+ te->HeaderGenerator = publicHeaderGenerator;
|
|
|
+ te->LibraryGenerator = libraryGenerator;
|
|
|
+ te->RuntimeGenerator = runtimeGenerator;
|
|
|
+ this->Makefile->GetLocalGenerator()->GetGlobalGenerator()
|
|
|
+ ->AddTargetToExports(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)
|
|
|
@@ -743,6 +762,7 @@ bool cmInstallCommand::HandleTargetsMode(std::vector<std::string> const& args)
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+
|
|
|
// Tell the global generator about any installation component names
|
|
|
// specified
|
|
|
if (installsArchive)
|