cmElseCommand.cxx 521 Bytes
Newer Older
1 2
/* Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
   file Copyright.txt or https://cmake.org/licensing for details.  */
3 4
#include "cmElseCommand.h"

5 6
class cmExecutionStatus;

7
bool cmElseCommand::InitialPass(std::vector<std::string> const&,
8
                                cmExecutionStatus&)
9
{
Ken Martin's avatar
Ken Martin committed
10 11 12
  this->SetError("An ELSE command was found outside of a proper "
                 "IF ENDIF structure. Or its arguments did not match "
                 "the opening IF command.");
Ken Martin's avatar
Ken Martin committed
13
  return false;
14
}