diff options
author | Brad King <brad.king@kitware.com> | 2009-01-20 19:35:22 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2009-01-20 19:35:22 (GMT) |
commit | a541cac325715cd50f604ede864eba8edfbb2673 (patch) | |
tree | e8b4b8b2546c2b492e7442662effe0afdd00a70f /Source/cmMakefile.cxx | |
parent | 03c940aeb38c1456df336262d667b69304de0504 (diff) | |
download | CMake-a541cac325715cd50f604ede864eba8edfbb2673.zip CMake-a541cac325715cd50f604ede864eba8edfbb2673.tar.gz CMake-a541cac325715cd50f604ede864eba8edfbb2673.tar.bz2 |
ENH: Improve response to bad if or elseif
Previously bad arguments to an if() or elseif() would cause some
subsequent statements in the corresponding block to execute. This
teaches CMake to stop processing commands with a fatal error. It also
provides context to bad elseif() error messages.
Diffstat (limited to 'Source/cmMakefile.cxx')
-rw-r--r-- | Source/cmMakefile.cxx | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/Source/cmMakefile.cxx b/Source/cmMakefile.cxx index 92d5938..bc013f9 100644 --- a/Source/cmMakefile.cxx +++ b/Source/cmMakefile.cxx @@ -349,26 +349,6 @@ bool cmMakefile::GetBacktrace(cmListFileBacktrace& backtrace) const } //---------------------------------------------------------------------------- -// Helper class to make sure the call stack is valid. -class cmMakefileCall -{ -public: - cmMakefileCall(cmMakefile* mf, - cmListFileContext const& lfc, - cmExecutionStatus& status): Makefile(mf) - { - cmMakefile::CallStackEntry entry = {&lfc, &status}; - this->Makefile->CallStack.push_back(entry); - } - ~cmMakefileCall() - { - this->Makefile->CallStack.pop_back(); - } -private: - cmMakefile* Makefile; -}; - -//---------------------------------------------------------------------------- bool cmMakefile::ExecuteCommand(const cmListFileFunction& lff, cmExecutionStatus &status) { |