diff options
author | Brad King <brad.king@kitware.com> | 2009-01-21 14:48:20 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2009-01-21 14:48:20 (GMT) |
commit | bca1026250c5d2006a3829662b736660982e3a33 (patch) | |
tree | c403de025adbc273eb3ebe1f30b36ae849d72a43 /Source/cmMacroCommand.cxx | |
parent | b8f5a934ecb83f0124be8485708d4d6d763682fd (diff) | |
download | CMake-bca1026250c5d2006a3829662b736660982e3a33.zip CMake-bca1026250c5d2006a3829662b736660982e3a33.tar.gz CMake-bca1026250c5d2006a3829662b736660982e3a33.tar.bz2 |
ENH: Better error message for unclosed blocks
This centralizes construction of the error message for an unclosed
logical block (if, foreach, etc.). We record the line at which each
block is opened so it can be reported in the error message.
Diffstat (limited to 'Source/cmMacroCommand.cxx')
-rw-r--r-- | Source/cmMacroCommand.cxx | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/Source/cmMacroCommand.cxx b/Source/cmMacroCommand.cxx index e7a27e5..8613044 100644 --- a/Source/cmMacroCommand.cxx +++ b/Source/cmMacroCommand.cxx @@ -302,17 +302,6 @@ ShouldRemove(const cmListFileFunction& lff, cmMakefile &mf) return false; } -void cmMacroFunctionBlocker:: -ScopeEnded(cmMakefile &mf) -{ - // macros should end with an EndMacro - cmSystemTools::Error( - "The end of a CMakeLists file was reached with a MACRO statement that " - "was not closed properly. Within the directory: ", - mf.GetCurrentDirectory(), " with macro ", - this->Args[0].c_str()); -} - bool cmMacroCommand::InitialPass(std::vector<std::string> const& args, cmExecutionStatus &) { |