ENH: Also read PreLoad.cmake from the binary tree
This commit is contained in:
parent
40fbba22a4
commit
9d61ea38dd
|
@ -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());
|
||||
|
|
Loading…
Reference in New Issue