diff options
author | Andy Cedilnik <andy.cedilnik@kitware.com> | 2004-08-23 18:33:22 (GMT) |
---|---|---|
committer | Andy Cedilnik <andy.cedilnik@kitware.com> | 2004-08-23 18:33:22 (GMT) |
commit | 75cf590b21d61e1c957e2afc345053a7980634a2 (patch) | |
tree | eac499e2ac14bd61b2b7afe08d7c91c9d3610017 /Source/cmake.cxx | |
parent | 2dba8e47319cc6f541af11a68f97e826489a2fa1 (diff) | |
download | CMake-75cf590b21d61e1c957e2afc345053a7980634a2.zip CMake-75cf590b21d61e1c957e2afc345053a7980634a2.tar.gz CMake-75cf590b21d61e1c957e2afc345053a7980634a2.tar.bz2 |
ENH: Implement PreLoad.cmake feature for CMakeSetup
Diffstat (limited to 'Source/cmake.cxx')
-rw-r--r-- | Source/cmake.cxx | 18 |
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()); + } } } |