浏览代码

ENH: put the project command at the front of the project

Bill Hoffman 23 年之前
父节点
当前提交
332fb964e7
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Source/cmListFileCache.cxx

+ 1 - 1
Source/cmListFileCache.cxx

@@ -127,7 +127,7 @@ bool cmListFileCache::CacheFile(const char* path, bool requireProjectCommand)
       cmListFileFunction project;
       project.m_Name = "PROJECT";
       project.m_Arguments.push_back("Project");
-      inFile.m_Functions.push_back(project);
+      inFile.m_Functions.insert(inFile.m_Functions.begin(),project);
       }
     }
   m_ListFileCache[path] = inFile;