ENH: Also read PreLoad.cmake from the binary tree

This commit is contained in:
Andy Cedilnik 2004-07-02 09:57:39 -04:00
parent 40fbba22a4
commit 9d61ea38dd
1 changed files with 6 additions and 0 deletions

View File

@ -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());