summaryrefslogtreecommitdiffstats
path: root/Source/cmIfCommand.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'Source/cmIfCommand.cxx')
-rw-r--r--Source/cmIfCommand.cxx9
1 files changed, 9 insertions, 0 deletions
diff --git a/Source/cmIfCommand.cxx b/Source/cmIfCommand.cxx
index 1425cbb..908d50b 100644
--- a/Source/cmIfCommand.cxx
+++ b/Source/cmIfCommand.cxx
@@ -68,6 +68,15 @@ ShouldRemove(const char *name, const std::vector<std::string> &args,
return !this->IsFunctionBlocked(name,args,mf);
}
+void cmIfFunctionBlocker::
+ScopeEnded(const cmMakefile &mf) const
+{
+ cmSystemTools::Error("The end of a CMakeLists file was reached with an IF statement that was not closed properly. Within the directory: ",
+ mf.GetCurrentDirectory(),
+ (m_Not ? " The arguments to the if were: NOT " : " The arguments to the if were: "),
+ m_Define.c_str());
+}
+
bool cmIfCommand::Invoke(std::vector<std::string>& args)
{
if(args.size() < 1 )