summaryrefslogtreecommitdiffstats
path: root/Source/cmVariableRequiresCommand.cxx
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2003-02-14 14:54:15 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2003-02-14 14:54:15 (GMT)
commitae5a80c7958c28dd273631f6869b05db599852b7 (patch)
treed07efa3d896111a41d20d2d6d86345cb96c3d5db /Source/cmVariableRequiresCommand.cxx
parenta410fdef6086083a2a2e5be191b19fd02707c607 (diff)
downloadCMake-ae5a80c7958c28dd273631f6869b05db599852b7.zip
CMake-ae5a80c7958c28dd273631f6869b05db599852b7.tar.gz
CMake-ae5a80c7958c28dd273631f6869b05db599852b7.tar.bz2
spelling errors
Diffstat (limited to 'Source/cmVariableRequiresCommand.cxx')
-rw-r--r--Source/cmVariableRequiresCommand.cxx14
1 files changed, 7 insertions, 7 deletions
diff --git a/Source/cmVariableRequiresCommand.cxx b/Source/cmVariableRequiresCommand.cxx
index 81e1f86..894e774 100644
--- a/Source/cmVariableRequiresCommand.cxx
+++ b/Source/cmVariableRequiresCommand.cxx
@@ -31,12 +31,12 @@ bool cmVariableRequiresCommand::InitialPass(std::vector<std::string> const& args
void cmVariableRequiresCommand::FinalPass()
{
- std::string testVarible = m_Arguments[0];
- if(!m_Makefile->IsOn(testVarible.c_str()))
+ std::string testVariable = m_Arguments[0];
+ if(!m_Makefile->IsOn(testVariable.c_str()))
{
return;
}
- std::string resultVarible = m_Arguments[1];
+ std::string resultVariable = m_Arguments[1];
bool requirementsMet = true;
std::string notSet;
bool hasAdvanced = false;
@@ -55,22 +55,22 @@ void cmVariableRequiresCommand::FinalPass()
}
}
}
- const char* reqVar = m_Makefile->GetDefinition(resultVarible.c_str());
+ const char* reqVar = m_Makefile->GetDefinition(resultVariable.c_str());
// if reqVar is unset, then set it to requirementsMet
// if reqVar is set to true, but requirementsMet is false , then
// set reqVar to false.
if(!reqVar || (!requirementsMet && m_Makefile->IsOn(reqVar)))
{
- m_Makefile->AddDefinition(resultVarible.c_str(), requirementsMet);
+ m_Makefile->AddDefinition(resultVariable.c_str(), requirementsMet);
}
if(!requirementsMet)
{
std::string message = "Variable assertion failed:\n";
- message += testVarible + " Requires that the following unset varibles are set:\n";
+ message += testVariable + " Requires that the following unset variables are set:\n";
message += notSet;
message += "\nPlease set them, or set ";
- message += testVarible + " to false, and re-configure.\n";
+ message += testVariable + " to false, and re-configure.\n";
if(hasAdvanced)
{
message += "One or more of the required variables is advanced. To set the variable, you must turn on advanced mode in cmake.";