diff --git a/Source/ctest.cxx b/Source/ctest.cxx index 3af2ba744..3be9293f7 100644 --- a/Source/ctest.cxx +++ b/Source/ctest.cxx @@ -178,6 +178,9 @@ int main (int argc, char *argv[]) args.push_back(argv[i]); } // run ctest - return inst.Run(args); + int res = inst.Run(args); + cmListFileCache::ClearCache(); + + return res; }