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
History
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
File Mode Size
Doxygen
Git
GitSetup
KWIML
KWStyle
Release
Sphinx
cmbzip2
cmcompress
cmcurl
cmexpat
cmjsoncpp
cmlibarchive
cmliblzma
cmzlib
.NoDartCoverage -rw-r--r-- 39 bytes
.gitattributes -rw-r--r-- 76 bytes
CMakeLists.txt -rw-r--r-- 1.4 KB
SetupForDevelopment.sh -rwxr-xr-x 392 bytes
cmThirdParty.h.in -rw-r--r-- 1007 bytes
cm_bzlib.h -rw-r--r-- 786 bytes
cm_curl.h -rw-r--r-- 797 bytes
cm_expat.h -rw-r--r-- 786 bytes
cm_jsoncpp_reader.h -rw-r--r-- 830 bytes
cm_jsoncpp_value.h -rw-r--r-- 826 bytes
cm_jsoncpp_writer.h -rw-r--r-- 830 bytes
cm_libarchive.h -rw-r--r-- 898 bytes
cm_lzma.h -rw-r--r-- 787 bytes
cm_xmlrpc.h -rw-r--r-- 778 bytes
cm_zlib.h -rw-r--r-- 779 bytes

back to top