summaryrefslogtreecommitdiffstats
path: root/Source/cmElseIfCommand.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'Source/cmElseIfCommand.cxx')
-rw-r--r--Source/cmElseIfCommand.cxx13
1 files changed, 13 insertions, 0 deletions
diff --git a/Source/cmElseIfCommand.cxx b/Source/cmElseIfCommand.cxx
new file mode 100644
index 0000000..1c32248
--- /dev/null
+++ b/Source/cmElseIfCommand.cxx
@@ -0,0 +1,13 @@
+/* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
+ file Copyright.txt or https://cmake.org/licensing for details. */
+#include "cmElseIfCommand.h"
+
+class cmExecutionStatus;
+
+bool cmElseIfCommand::InitialPass(std::vector<std::string> const&,
+ cmExecutionStatus&)
+{
+ this->SetError("An ELSEIF command was found outside of a proper "
+ "IF ENDIF structure.");
+ return false;
+}