Merge topic 'missing-fclose-in-trycompile'

ce441fa try_compile: add missing fclose() to recently added error case
This commit is contained in:
Brad King 2013-04-17 11:35:26 -04:00 committed by CMake Topic Stage
commit 8a2763b3ac

View File

@ -326,6 +326,7 @@ int cmCoreTryCompile::TryCompileCode(std::vector<std::string> const& argv)
{
this->Makefile->IssueMessage(cmake::FATAL_ERROR,
"could not write export file.");
fclose(fout);
return -1;
}
fprintf(fout,