diff options
author | Brad King <brad.king@kitware.com> | 2014-07-21 17:02:22 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2014-07-21 17:02:22 (GMT) |
commit | 807e4ffeefb0e10ef0546e0eb7383f3d5533809b (patch) | |
tree | 0faa99cb8c0479245755fa2e4347ae47a91872ac /Source/cmGeneratorExpression.cxx | |
parent | 46099b82ed71394f1dc6e0bbb91704d274edab7d (diff) | |
download | CMake-807e4ffeefb0e10ef0546e0eb7383f3d5533809b.zip CMake-807e4ffeefb0e10ef0546e0eb7383f3d5533809b.tar.gz CMake-807e4ffeefb0e10ef0546e0eb7383f3d5533809b.tar.bz2 |
Genex: Track whether an expression depends on the 'head' target
Diffstat (limited to 'Source/cmGeneratorExpression.cxx')
-rw-r--r-- | Source/cmGeneratorExpression.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Source/cmGeneratorExpression.cxx b/Source/cmGeneratorExpression.cxx index 2b4d955..7fc1464 100644 --- a/Source/cmGeneratorExpression.cxx +++ b/Source/cmGeneratorExpression.cxx @@ -97,6 +97,7 @@ const char *cmCompiledGeneratorExpression::Evaluate( context.Quiet = quiet; context.HadError = false; context.HadContextSensitiveCondition = false; + context.HadHeadSensitiveCondition = false; context.HeadTarget = headTarget; context.EvaluateForBuildsystem = this->EvaluateForBuildsystem; context.CurrentTarget = currentTarget ? currentTarget : headTarget; @@ -124,6 +125,7 @@ const char *cmCompiledGeneratorExpression::Evaluate( if (!context.HadError) { this->HadContextSensitiveCondition = context.HadContextSensitiveCondition; + this->HadHeadSensitiveCondition = context.HadHeadSensitiveCondition; } this->DependTargets = context.DependTargets; @@ -137,6 +139,7 @@ cmCompiledGeneratorExpression::cmCompiledGeneratorExpression( const std::string& input) : Backtrace(backtrace), Input(input), HadContextSensitiveCondition(false), + HadHeadSensitiveCondition(false), EvaluateForBuildsystem(false) { cmGeneratorExpressionLexer l; |