2016-09-27 22:01:08 +03:00
|
|
|
/* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
|
|
|
|
file Copyright.txt or https://cmake.org/licensing for details. */
|
2005-01-21 17:38:04 +03:00
|
|
|
#include "cmEndWhileCommand.h"
|
|
|
|
|
2016-05-16 17:34:04 +03:00
|
|
|
bool cmEndWhileCommand::InvokeInitialPass(
|
|
|
|
std::vector<cmListFileArgument> const& args, cmExecutionStatus&)
|
2005-01-21 17:38:04 +03:00
|
|
|
{
|
2016-05-16 17:34:04 +03:00
|
|
|
if (args.empty()) {
|
2012-03-01 22:32:38 +04:00
|
|
|
this->SetError("An ENDWHILE command was found outside of a proper "
|
|
|
|
"WHILE ENDWHILE structure.");
|
2016-05-16 17:34:04 +03:00
|
|
|
} else {
|
2012-03-01 22:32:38 +04:00
|
|
|
this->SetError("An ENDWHILE command was found outside of a proper "
|
|
|
|
"WHILE ENDWHILE structure. Or its arguments did not "
|
|
|
|
"match the opening WHILE command.");
|
2016-05-16 17:34:04 +03:00
|
|
|
}
|
2012-03-01 22:32:38 +04:00
|
|
|
|
2005-01-21 17:38:04 +03:00
|
|
|
return false;
|
|
|
|
}
|