mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-08 14:50:10 -06:00
try_compile: add missing fclose() to recently added error case
In commit 236133e7 (Handle targets in the LINK_LIBRARIES of try_compile,
2013-02-09) an error return case was added without closing the file in
progress. Add the missing fclose() call.
Spotted by sevenhill.
This commit is contained in:
committed by
Brad King
parent
201db269b8
commit
ce441fac07
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user