summaryrefslogtreecommitdiffstats
path: root/Source/cmEndFunctionCommand.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'Source/cmEndFunctionCommand.cxx')
-rw-r--r--Source/cmEndFunctionCommand.cxx27
1 files changed, 27 insertions, 0 deletions
diff --git a/Source/cmEndFunctionCommand.cxx b/Source/cmEndFunctionCommand.cxx
new file mode 100644
index 0000000..353be46
--- /dev/null
+++ b/Source/cmEndFunctionCommand.cxx
@@ -0,0 +1,27 @@
+/*=========================================================================
+
+ Program: CMake - Cross-Platform Makefile Generator
+ Module: $RCSfile$
+ Language: C++
+ Date: $Date$
+ Version: $Revision$
+
+ Copyright (c) 2002 Kitware, Inc., Insight Consortium. All rights reserved.
+ See Copyright.txt or http://www.cmake.org/HTML/Copyright.html for details.
+
+ This software is distributed WITHOUT ANY WARRANTY; without even
+ the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+ PURPOSE. See the above copyright notices for more information.
+
+=========================================================================*/
+#include "cmEndFunctionCommand.h"
+
+bool cmEndFunctionCommand
+::InvokeInitialPass(std::vector<cmListFileArgument> const&)
+{
+ this->SetError("An ENDFUNCTION command was found outside of a proper "
+ "FUNCTION ENDFUNCTION structure. Or its arguments did not "
+ "match the opening FUNCTION command.");
+ return false;
+}
+