diff options
author | Ken Martin <ken.martin@kitware.com> | 2005-06-23 15:03:57 (GMT) |
---|---|---|
committer | Ken Martin <ken.martin@kitware.com> | 2005-06-23 15:03:57 (GMT) |
commit | dec5cc1082f92fd1ba56afe9efc596377afc4461 (patch) | |
tree | 53f355a7b81db7fb0a311267f7aaaf7b3d7dc359 /Source/cmForEachCommand.cxx | |
parent | 553f7a04d07aed93ae72148a171ec11d7a1403dd (diff) | |
download | CMake-dec5cc1082f92fd1ba56afe9efc596377afc4461.zip CMake-dec5cc1082f92fd1ba56afe9efc596377afc4461.tar.gz CMake-dec5cc1082f92fd1ba56afe9efc596377afc4461.tar.bz2 |
ENH: converted macro to use variables and fixed some case issues with some function blockers
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); |