diff options
author | Ken Martin <ken.martin@kitware.com> | 2001-05-04 12:46:05 (GMT) |
---|---|---|
committer | Ken Martin <ken.martin@kitware.com> | 2001-05-04 12:46:05 (GMT) |
commit | faaadc4a08e8103e25346a437fc203e05b43566c (patch) | |
tree | 8e2639af9190a312a15259bdf54e1d07e20343da /Source/cmIfCommand.cxx | |
parent | dd2876adb0b9de0b8ffc31c13736055a6eccdb2b (diff) | |
download | CMake-faaadc4a08e8103e25346a437fc203e05b43566c.zip CMake-faaadc4a08e8103e25346a437fc203e05b43566c.tar.gz CMake-faaadc4a08e8103e25346a437fc203e05b43566c.tar.bz2 |
better If checks
Diffstat (limited to 'Source/cmIfCommand.cxx')
-rw-r--r-- | Source/cmIfCommand.cxx | 9 |
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 ) |