diff options
author | Andy Cedilnik <andy.cedilnik@kitware.com> | 2004-07-02 09:57:39 -0400 |
---|---|---|
committer | Andy Cedilnik <andy.cedilnik@kitware.com> | 2004-07-02 09:57:39 -0400 |
commit | 9d61ea38ddc8cbc657e1f847e940aa3602d1b811 (patch) | |
tree | aed071379a137798605cf22a9121a76885540e1b | |
parent | 40fbba22a48271d6ee358f766ba680729e56b253 (diff) | |
download | cmake-9d61ea38ddc8cbc657e1f847e940aa3602d1b811.tar.gz |
ENH: Also read PreLoad.cmake from the binary tree
-rw-r--r-- | Source/cmake.cxx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Source/cmake.cxx b/Source/cmake.cxx index 5c0dd75992..e262fe4361 100644 --- a/Source/cmake.cxx +++ b/Source/cmake.cxx @@ -1176,6 +1176,12 @@ int cmake::Run(const std::vector<std::string>& args, bool noconfigure) { 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()); + } std::string systemFile = this->GetHomeOutputDirectory(); systemFile += "/CMakeSystem.cmake"; |