diff options
Diffstat (limited to 'Source/cmForEachCommand.cxx')
-rw-r--r-- | Source/cmForEachCommand.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmForEachCommand.cxx b/Source/cmForEachCommand.cxx index e4a12cb..4c05cf0 100644 --- a/Source/cmForEachCommand.cxx +++ b/Source/cmForEachCommand.cxx @@ -27,7 +27,7 @@ IsFunctionBlocked(const cmListFileFunction& lff, cmMakefile &mf) } // at end of for each execute recorded commands - if (lff.m_Name == "ENDFOREACH") + if (cmSystemTools::LowerCase(lff.m_Name) == "endforeach") { std::vector<std::string> expandedArguments; mf.ExpandArguments(lff.m_Arguments, expandedArguments); @@ -72,7 +72,7 @@ IsFunctionBlocked(const cmListFileFunction& lff, cmMakefile &mf) bool cmForEachFunctionBlocker:: ShouldRemove(const cmListFileFunction& lff, cmMakefile& mf) { - if(lff.m_Name == "ENDFOREACH") + if(cmSystemTools::LowerCase(lff.m_Name) == "endforeach") { std::vector<std::string> expandedArguments; mf.ExpandArguments(lff.m_Arguments, expandedArguments); |