diff options
author | Stephen Kelly <steveire@gmail.com> | 2015-05-18 19:35:29 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2015-05-18 21:55:41 (GMT) |
commit | e17b5e426294dc5cc86ba31dfd4d4acc553c0c72 (patch) | |
tree | 049ab6bd6a65638359d6e514b31b84f206a2d044 /Source/cmConditionEvaluator.cxx | |
parent | 1ec1bf9f071ce930094171ab45f2dbc02c57927b (diff) | |
download | CMake-e17b5e426294dc5cc86ba31dfd4d4acc553c0c72.zip CMake-e17b5e426294dc5cc86ba31dfd4d4acc553c0c72.tar.gz CMake-e17b5e426294dc5cc86ba31dfd4d4acc553c0c72.tar.bz2 |
cmMakefile: Add access to the top-level execution context.
This is cheaper than getting the whole backtrace, and the cmListFileBacktrace
will not always be composed of cmListFileContext objects.
Diffstat (limited to 'Source/cmConditionEvaluator.cxx')
-rw-r--r-- | Source/cmConditionEvaluator.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmConditionEvaluator.cxx b/Source/cmConditionEvaluator.cxx index 73aface..e5a89b6 100644 --- a/Source/cmConditionEvaluator.cxx +++ b/Source/cmConditionEvaluator.cxx @@ -113,7 +113,7 @@ const char* cmConditionEvaluator::GetDefinitionIfUnquoted( if(def && argument.WasQuoted() && this->Policy54Status == cmPolicies::WARN) { bool hasBeenReported = this->Makefile.HasCMP0054AlreadyBeenReported( - this->Makefile.GetBacktrace()[0]); + this->Makefile.GetExecutionContext()); if(!hasBeenReported) { @@ -162,7 +162,7 @@ bool cmConditionEvaluator::IsKeyword(std::string const& keyword, this->Policy54Status == cmPolicies::WARN) { bool hasBeenReported = this->Makefile.HasCMP0054AlreadyBeenReported( - this->Makefile.GetBacktrace()[0]); + this->Makefile.GetExecutionContext()); if(!hasBeenReported) { |