mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-03 12:49:50 -05:00
ENH: converted macro to use variables and fixed some case issues with some function blockers
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user