diff --git a/Source/cmake.cxx b/Source/cmake.cxx index 5c0dd7599..e262fe436 100644 --- a/Source/cmake.cxx +++ b/Source/cmake.cxx @@ -1172,6 +1172,12 @@ int cmake::Run(const std::vector& args, bool noconfigure) std::string pre_load = this->GetHomeDirectory(); pre_load += "/PreLoad.cmake"; + if ( cmSystemTools::FileExists(pre_load.c_str()) ) + { + 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());