summaryrefslogtreecommitdiffstats
path: root/Source/cmake.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'Source/cmake.cxx')
-rw-r--r--Source/cmake.cxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/Source/cmake.cxx b/Source/cmake.cxx
index 5c0dd75..e262fe4 100644
--- a/Source/cmake.cxx
+++ b/Source/cmake.cxx
@@ -1176,6 +1176,12 @@ int cmake::Run(const std::vector<std::string>& args, bool noconfigure)
{
this->ReadListFile(pre_load.c_str());
}
+ pre_load = this->GetHomeOutputDirectory();
+ pre_load += "/PreLoad.cmake";
+ if ( cmSystemTools::FileExists(pre_load.c_str()) )
+ {
+ this->ReadListFile(pre_load.c_str());
+ }
std::string systemFile = this->GetHomeOutputDirectory();
systemFile += "/CMakeSystem.cmake";