summaryrefslogtreecommitdiffstats
path: root/Source/cmGeneratorExpressionEvaluator.cxx
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2013-02-09 10:12:20 (GMT)
committerBrad King <brad.king@kitware.com>2013-02-22 13:35:29 (GMT)
commitf2ab17d4db86af5695f70b5c49f388319e510472 (patch)
treeb8da6f951e3df6f34cd1292e9ae87f5947fe92f0 /Source/cmGeneratorExpressionEvaluator.cxx
parent0ad58af4445e8c3ccf1ac987698b7ec50e25020c (diff)
downloadCMake-f2ab17d4db86af5695f70b5c49f388319e510472.zip
CMake-f2ab17d4db86af5695f70b5c49f388319e510472.tar.gz
CMake-f2ab17d4db86af5695f70b5c49f388319e510472.tar.bz2
Keep track of all targets seen while evaluating a genex.
As dependencies of the generator expression, these will re-exported in try_compile generated code.
Diffstat (limited to 'Source/cmGeneratorExpressionEvaluator.cxx')
-rw-r--r--Source/cmGeneratorExpressionEvaluator.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/Source/cmGeneratorExpressionEvaluator.cxx b/Source/cmGeneratorExpressionEvaluator.cxx
index cd6a40b..97ba524 100644
--- a/Source/cmGeneratorExpressionEvaluator.cxx
+++ b/Source/cmGeneratorExpressionEvaluator.cxx
@@ -392,6 +392,7 @@ static const struct TargetPropertyNode : public cmGeneratorExpressionNode
reportError(context, content->GetOriginalExpression(), e.str());
return std::string();
}
+ context->AllTargets.insert(target);
}
if (target == context->HeadTarget)
@@ -852,7 +853,8 @@ struct TargetFilesystemArtifact : public cmGeneratorExpressionNode
"Target \"" + name + "\" is not an executable or library.");
return std::string();
}
- context->Targets.insert(target);
+ context->DependTargets.insert(target);
+ context->AllTargets.insert(target);
std::string result =
TargetFilesystemArtifactResultCreator<linker, soname>::Create(