cmElseCommand.cxx 521 B

1234567891011121314
  1. /* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
  2. file Copyright.txt or https://cmake.org/licensing for details. */
  3. #include "cmElseCommand.h"
  4. class cmExecutionStatus;
  5. bool cmElseCommand::InitialPass(std::vector<std::string> const&,
  6. cmExecutionStatus&)
  7. {
  8. this->SetError("An ELSE command was found outside of a proper "
  9. "IF ENDIF structure. Or its arguments did not match "
  10. "the opening IF command.");
  11. return false;
  12. }