summaryrefslogtreecommitdiffstats
path: root/Source/cmake.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'Source/cmake.cxx')
-rw-r--r--Source/cmake.cxx7
1 files changed, 7 insertions, 0 deletions
diff --git a/Source/cmake.cxx b/Source/cmake.cxx
index 121e0df..3a4a0d5 100644
--- a/Source/cmake.cxx
+++ b/Source/cmake.cxx
@@ -1160,6 +1160,13 @@ int cmake::Run(const std::vector<std::string>& args, bool noconfigure)
cmSystemTools::Error("Problem processing arguments. Aborting.\n");
return -1;
}
+
+ std::string pre_load = this->GetHomeDirectory();
+ 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";