summaryrefslogtreecommitdiffstats
path: root/Source/cmEndIfCommand.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'Source/cmEndIfCommand.cxx')
-rw-r--r--Source/cmEndIfCommand.cxx11
1 files changed, 2 insertions, 9 deletions
diff --git a/Source/cmEndIfCommand.cxx b/Source/cmEndIfCommand.cxx
index 7b46eaa..f91c38e 100644
--- a/Source/cmEndIfCommand.cxx
+++ b/Source/cmEndIfCommand.cxx
@@ -19,14 +19,7 @@
bool cmEndIfCommand::InitialPass(std::vector<std::string> const& args)
{
- if(args.size() < 1 )
- {
- this->SetError("called with incorrect number of arguments");
- return false;
- }
- // remove any function blockers for this define
- m_Makefile->RemoveFunctionBlocker("ENDIF",args);
-
- return true;
+ this->SetError("An ENDIF command was found outside of a proper IF ENDIF structure. Or its arguments did not match the opening IF command.");
+ return false;
}