Browse Source

ENH: Also read PreLoad.cmake from the binary tree

Andy Cedilnik 21 years ago
parent
commit
9d61ea38dd
1 changed files with 6 additions and 0 deletions
  1. 6 0
      Source/cmake.cxx

+ 6 - 0
Source/cmake.cxx

@@ -1172,6 +1172,12 @@ int cmake::Run(const std::vector<std::string>& 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());