ENH: fix warning correctly
This commit is contained in:
parent
cd8dc094f8
commit
3e03bed0ac
@ -1568,11 +1568,10 @@ int cmCTest::Run(std::vector<std::string>const& args, std::string* output)
|
|||||||
if(cmakeAndTest)
|
if(cmakeAndTest)
|
||||||
{
|
{
|
||||||
cmSystemTools::ResetErrorOccuredFlag();
|
cmSystemTools::ResetErrorOccuredFlag();
|
||||||
cmListFileCache *lfc = cmListFileCache::GetInstance();
|
cmListFileCache::ClearCache();
|
||||||
lfc->ClearCache();
|
|
||||||
int retv = this->RunCMakeAndTest(output);
|
int retv = this->RunCMakeAndTest(output);
|
||||||
cmSystemTools::ResetErrorOccuredFlag();
|
cmSystemTools::ResetErrorOccuredFlag();
|
||||||
lfc->ClearCache();
|
cmListFileCache::ClearCache();
|
||||||
#ifdef CMAKE_BUILD_WITH_CMAKE
|
#ifdef CMAKE_BUILD_WITH_CMAKE
|
||||||
cmDynamicLoader::FlushCache();
|
cmDynamicLoader::FlushCache();
|
||||||
#endif
|
#endif
|
||||||
|
@ -109,8 +109,7 @@ int main(int ac, char** av)
|
|||||||
#ifdef CMAKE_BUILD_WITH_CMAKE
|
#ifdef CMAKE_BUILD_WITH_CMAKE
|
||||||
cmDynamicLoader::FlushCache();
|
cmDynamicLoader::FlushCache();
|
||||||
#endif
|
#endif
|
||||||
cmListFileCache* lf = cmListFileCache::GetInstance();
|
cmListFileCache::ClearCache();
|
||||||
lf->ClearCache();
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user