summaryrefslogtreecommitdiffstats
path: root/Source/cmIfCommand.cxx
diff options
context:
space:
mode:
authorKen Martin <ken.martin@kitware.com>2001-05-04 12:46:05 (GMT)
committerKen Martin <ken.martin@kitware.com>2001-05-04 12:46:05 (GMT)
commitfaaadc4a08e8103e25346a437fc203e05b43566c (patch)
tree8e2639af9190a312a15259bdf54e1d07e20343da /Source/cmIfCommand.cxx
parentdd2876adb0b9de0b8ffc31c13736055a6eccdb2b (diff)
downloadCMake-faaadc4a08e8103e25346a437fc203e05b43566c.zip
CMake-faaadc4a08e8103e25346a437fc203e05b43566c.tar.gz
CMake-faaadc4a08e8103e25346a437fc203e05b43566c.tar.bz2
better If checks
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 )