summaryrefslogtreecommitdiffstats
path: root/Source/cmake.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'Source/cmake.cxx')
-rw-r--r--Source/cmake.cxx18
1 files changed, 12 insertions, 6 deletions
diff --git a/Source/cmake.cxx b/Source/cmake.cxx
index b8e3c24..ca07acf 100644
--- a/Source/cmake.cxx
+++ b/Source/cmake.cxx
@@ -1182,16 +1182,22 @@ bool cmake::CacheVersionMatches()
void cmake::PreLoadCMakeFiles()
{
std::string pre_load = this->GetHomeDirectory();
- pre_load += "/PreLoad.cmake";
- if ( cmSystemTools::FileExists(pre_load.c_str()) )
+ if ( pre_load.size() > 0 )
{
- this->ReadListFile(pre_load.c_str());
+ 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()) )
+ if ( pre_load.size() > 0 )
{
- this->ReadListFile(pre_load.c_str());
+ pre_load += "/PreLoad.cmake";
+ if ( cmSystemTools::FileExists(pre_load.c_str()) )
+ {
+ this->ReadListFile(pre_load.c_str());
+ }
}
}