diff --git a/Source/cmMakefile.cxx b/Source/cmMakefile.cxx index a12ac2b48..f2d1fdea0 100644 --- a/Source/cmMakefile.cxx +++ b/Source/cmMakefile.cxx @@ -464,6 +464,7 @@ void cmMakefile::GenerateTestfile() } fout << std::endl; + fout.close(); } void cmMakefile::AddSource(cmSourceFile& cmfile, const char *srclist)