ENH: converted macro to use variables and fixed some case issues with some function blockers

This commit is contained in:
Ken Martin
2005-06-23 11:03:57 -04:00
parent 553f7a04d0
commit dec5cc1082
4 changed files with 96 additions and 129 deletions
+2 -2
View File
@@ -28,7 +28,7 @@ IsFunctionBlocked(const cmListFileFunction& lff, cmMakefile &mf)
}
// at end of for each execute recorded commands
if (lff.m_Name == "ENDWHILE")
if (cmSystemTools::LowerCase(lff.m_Name) == "endwhile")
{
char* errorString = 0;
@@ -64,7 +64,7 @@ IsFunctionBlocked(const cmListFileFunction& lff, cmMakefile &mf)
bool cmWhileFunctionBlocker::
ShouldRemove(const cmListFileFunction& lff, cmMakefile& )
{
if(lff.m_Name == "ENDWHILE")
if(cmSystemTools::LowerCase(lff.m_Name) == "endwhile")
{
if (lff.m_Arguments == m_Args)
{