summaryrefslogtreecommitdiffstats
path: root/Source/cmEndFunctionCommand.cxx
diff options
context:
space:
mode:
authorKen Martin <ken.martin@kitware.com>2007-12-03 17:47:22 (GMT)
committerKen Martin <ken.martin@kitware.com>2007-12-03 17:47:22 (GMT)
commit257b775f70b98e2242f01a252e08a55cdac91993 (patch)
tree88133f7ca6e26152255cfafc44c9733786bc3538 /Source/cmEndFunctionCommand.cxx
parent951444165f4c18c83efe47f8e86656df9c690983 (diff)
downloadCMake-257b775f70b98e2242f01a252e08a55cdac91993.zip
CMake-257b775f70b98e2242f01a252e08a55cdac91993.tar.gz
CMake-257b775f70b98e2242f01a252e08a55cdac91993.tar.bz2
ENH: add functions
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;
+}
+