From 9d61ea38ddc8cbc657e1f847e940aa3602d1b811 Mon Sep 17 00:00:00 2001 From: Andy Cedilnik Date: Fri, 2 Jul 2004 09:57:39 -0400 Subject: [PATCH] ENH: Also read PreLoad.cmake from the binary tree --- Source/cmake.cxx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Source/cmake.cxx b/Source/cmake.cxx index 5c0dd7599..e262fe436 100644 --- a/Source/cmake.cxx +++ b/Source/cmake.cxx @@ -1172,6 +1172,12 @@ int cmake::Run(const std::vector& 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());