summaryrefslogtreecommitdiffstats
path: root/Source/cmWhileCommand.cxx
diff options
context:
space:
mode:
authorKen Martin <ken.martin@kitware.com>2005-06-23 15:03:57 (GMT)
committerKen Martin <ken.martin@kitware.com>2005-06-23 15:03:57 (GMT)
commitdec5cc1082f92fd1ba56afe9efc596377afc4461 (patch)
tree53f355a7b81db7fb0a311267f7aaaf7b3d7dc359 /Source/cmWhileCommand.cxx
parent553f7a04d07aed93ae72148a171ec11d7a1403dd (diff)
downloadCMake-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/cmWhileCommand.cxx')
-rw-r--r--Source/cmWhileCommand.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmWhileCommand.cxx b/Source/cmWhileCommand.cxx
index 00445e5..38cb9ba 100644
--- a/Source/cmWhileCommand.cxx
+++ b/Source/cmWhileCommand.cxx
@@ -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)
{