summaryrefslogtreecommitdiffstats
path: root/Source/cmGeneratorExpressionNode.cxx
diff options
context:
space:
mode:
authorJustin Goshi <jgoshi@microsoft.com>2020-06-11 19:27:46 (GMT)
committerBrad King <brad.king@kitware.com>2020-06-15 15:31:03 (GMT)
commit0892c798f795c6072ce882552384187db86797f0 (patch)
tree70de16645f493c702419992a3c691de41e5a38f6 /Source/cmGeneratorExpressionNode.cxx
parent43b10e2411858ae7734c54480a8c0c6c3ccd659b (diff)
downloadCMake-0892c798f795c6072ce882552384187db86797f0.zip
CMake-0892c798f795c6072ce882552384187db86797f0.tar.gz
CMake-0892c798f795c6072ce882552384187db86797f0.tar.bz2
cmMakefile: Change CompileFeatureKnown to take target name instead of target
The implementation needs only the target name.
Diffstat (limited to 'Source/cmGeneratorExpressionNode.cxx')
-rw-r--r--Source/cmGeneratorExpressionNode.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmGeneratorExpressionNode.cxx b/Source/cmGeneratorExpressionNode.cxx
index e4fb67e..6254c5b 100644
--- a/Source/cmGeneratorExpressionNode.cxx
+++ b/Source/cmGeneratorExpressionNode.cxx
@@ -1708,7 +1708,7 @@ static const struct CompileFeaturesNode : public cmGeneratorExpressionNode
std::string error;
std::string lang;
if (!context->LG->GetMakefile()->CompileFeatureKnown(
- context->HeadTarget->Target, p, lang, &error)) {
+ context->HeadTarget->Target->GetName(), p, lang, &error)) {
reportError(context, content->GetOriginalExpression(), error);
return std::string();
}