summaryrefslogtreecommitdiffstats
path: root/Source/cmListFileCache.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'Source/cmListFileCache.cxx')
-rw-r--r--Source/cmListFileCache.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmListFileCache.cxx b/Source/cmListFileCache.cxx
index b20f4b4..0893cf6 100644
--- a/Source/cmListFileCache.cxx
+++ b/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;