diff options
-rw-r--r-- | Source/cmCTest.cxx | 3 | ||||
-rw-r--r-- | Source/cmakemain.cxx | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/Source/cmCTest.cxx b/Source/cmCTest.cxx index f7f3b71..30f482f 100644 --- a/Source/cmCTest.cxx +++ b/Source/cmCTest.cxx @@ -1571,7 +1571,8 @@ int cmCTest::Run(std::vector<std::string>const& args, std::string* output) cmListFileCache::GetInstance()->ClearCache(); int retv = this->RunCMakeAndTest(output); cmSystemTools::ResetErrorOccuredFlag(); - cmListFileCache::GetInstance()->ClearCache(); + cmListFileCache* lf = cmListFileCache::GetInstance(); + lf->ClearCache(); #ifdef CMAKE_BUILD_WITH_CMAKE cmDynamicLoader::FlushCache(); #endif diff --git a/Source/cmakemain.cxx b/Source/cmakemain.cxx index 663a3b5..1c893ac 100644 --- a/Source/cmakemain.cxx +++ b/Source/cmakemain.cxx @@ -109,7 +109,8 @@ int main(int ac, char** av) #ifdef CMAKE_BUILD_WITH_CMAKE cmDynamicLoader::FlushCache(); #endif - cmListFileCache::GetInstance()->ClearCache(); + cmListFileCache* lf = cmListFileCache::GetInstance(); + lf->ClearCache(); return ret; } |