https://github.com/Kitware/CMake
Revision d6a03b475e023da9b7532a5b8735caec36b5de86 authored by Stephen Kelly on 20 October 2015, 17:13:52 UTC, committed by Stephen Kelly on 20 October 2015, 21:40:12 UTC
Commit v3.4.0-rc1~494^2~4 (cmMakefile: Add API for elseif to create
backtrace., 2015-05-29) removed the use of cmMakefileCall to push/pop
execution context in favor of a new way to create backtraces.

However, a call to cmMakefile::GetExecutionContext is still invoked to
issue a contextual CMP0054 warning through cmConditionEvaluator.  As
the elseif is not part of the call stack, this resulted in trying to
access an empty vector.

Avoid the attempt at getting execution context when evaluating elseif by
constructing a context and backtrace on behalf of the cmConditionEvaluator
in all cases.
1 parent 22bfb39
Raw File
Tip revision: d6a03b475e023da9b7532a5b8735caec36b5de86 authored by Stephen Kelly on 20 October 2015, 17:13:52 UTC
cmIfCommand: Issue CMP0054 warning with appropriate context. (#15802)
Tip revision: d6a03b4
.NoDartCoverage
# do not do coverage in this directory
back to top