summaryrefslogtreecommitdiffstats
path: root/Source/cmExportSet.cxx
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2015-10-17 11:31:33 (GMT)
committerStephen Kelly <steveire@gmail.com>2015-10-18 14:29:29 (GMT)
commit381e7afd363d64c72b83e69fd6c6cad5fc3eefb4 (patch)
tree4622b0de4d39a55ec71ca7562f18783137da3087 /Source/cmExportSet.cxx
parent65911cae4dd5a81f23a59bf9187b95bda3168fe9 (diff)
downloadCMake-381e7afd363d64c72b83e69fd6c6cad5fc3eefb4.zip
CMake-381e7afd363d64c72b83e69fd6c6cad5fc3eefb4.tar.gz
CMake-381e7afd363d64c72b83e69fd6c6cad5fc3eefb4.tar.bz2
cmExportSet: Store a cmGeneratorTarget.
Set the member at compute time from the stored name.
Diffstat (limited to 'Source/cmExportSet.cxx')
-rw-r--r--Source/cmExportSet.cxx10
1 files changed, 10 insertions, 0 deletions
diff --git a/Source/cmExportSet.cxx b/Source/cmExportSet.cxx
index 4148fb5..0059b64 100644
--- a/Source/cmExportSet.cxx
+++ b/Source/cmExportSet.cxx
@@ -13,12 +13,22 @@
#include "cmExportSet.h"
#include "cmTargetExport.h"
#include "cmAlgorithms.h"
+#include "cmLocalGenerator.h"
cmExportSet::~cmExportSet()
{
cmDeleteAll(this->TargetExports);
}
+void cmExportSet::Compute(cmLocalGenerator* lg)
+{
+ for (std::vector<cmTargetExport*>::iterator it = this->TargetExports.begin();
+ it != this->TargetExports.end(); ++it)
+ {
+ (*it)->Target = lg->FindGeneratorTargetToUse((*it)->TargetName);
+ }
+}
+
void cmExportSet::AddTargetExport(cmTargetExport* te)
{
this->TargetExports.push_back(te);