summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2004-07-02 13:57:39 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2004-07-02 13:57:39 (GMT)
commit9d61ea38ddc8cbc657e1f847e940aa3602d1b811 (patch)
treeaed071379a137798605cf22a9121a76885540e1b /Source
parent40fbba22a48271d6ee358f766ba680729e56b253 (diff)
downloadCMake-9d61ea38ddc8cbc657e1f847e940aa3602d1b811.zip
CMake-9d61ea38ddc8cbc657e1f847e940aa3602d1b811.tar.gz
CMake-9d61ea38ddc8cbc657e1f847e940aa3602d1b811.tar.bz2
ENH: Also read PreLoad.cmake from the binary tree
Diffstat (limited to 'Source')
-rw-r--r--Source/cmake.cxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/Source/cmake.cxx b/Source/cmake.cxx
index 5c0dd75..e262fe4 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";