Explorar o código

BUG: project command should also work with lower case

Ken Martin %!s(int64=20) %!d(string=hai) anos
pai
achega
5aad7d13cb
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      Source/cmListFileCache.cxx

+ 1 - 1
Source/cmListFileCache.cxx

@@ -179,7 +179,7 @@ bool cmListFileCache::CacheFile(const char* path, bool requireProjectCommand)
           = inFile.m_Functions.begin();
         i != inFile.m_Functions.end(); ++i)
       {
-      if(i->m_Name == "PROJECT")
+      if(cmSystemTools::LowerCase(i->m_Name) == "project")
         {
         hasProject = true;
         break;