2016-09-27 15:01:08 -04: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 09:38:04 -05:00
|
|
|
#include "cmEndWhileCommand.h"
|
|
|
|
|
2016-05-16 10:34:04 -04:00
|
|
|
bool cmEndWhileCommand::InvokeInitialPass(
|
|
|
|
std::vector<cmListFileArgument> const& args, cmExecutionStatus&)
|
2005-01-21 09:38:04 -05:00
|
|
|
{
|
2016-05-16 10:34:04 -04:00
|
|
|
if (args.empty()) {
|
2012-03-01 19:32:38 +01:00
|
|
|
this->SetError("An ENDWHILE command was found outside of a proper "
|
|
|
|
"WHILE ENDWHILE structure.");
|
2016-05-16 10:34:04 -04:00
|
|
|
} else {
|
2012-03-01 19:32:38 +01: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 10:34:04 -04:00
|
|
|
}
|
2012-03-01 19:32:38 +01:00
|
|
|
|
2005-01-21 09:38:04 -05:00
|
|
|
return false;
|
|
|
|
}
|