Commit 3e03bed0 authored by Bill Hoffman's avatar Bill Hoffman
Browse files

ENH: fix warning correctly

parent cd8dc094
......@@ -1568,11 +1568,10 @@ int cmCTest::Run(std::vector<std::string>const& args, std::string* output)
if(cmakeAndTest)
{
cmSystemTools::ResetErrorOccuredFlag();
cmListFileCache *lfc = cmListFileCache::GetInstance();
lfc->ClearCache();
cmListFileCache::ClearCache();
int retv = this->RunCMakeAndTest(output);
cmSystemTools::ResetErrorOccuredFlag();
lfc->ClearCache();
cmListFileCache::ClearCache();
#ifdef CMAKE_BUILD_WITH_CMAKE
cmDynamicLoader::FlushCache();
#endif
......
......@@ -109,8 +109,7 @@ int main(int ac, char** av)
#ifdef CMAKE_BUILD_WITH_CMAKE
cmDynamicLoader::FlushCache();
#endif
cmListFileCache* lf = cmListFileCache::GetInstance();
lf->ClearCache();
cmListFileCache::ClearCache();
return ret;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment