BUG: Fix logic of LabelFiles.txt generation

This fixes a dumb logic error which causes generation of LabelFiles.txt
to try to open the file once for every target with labels.
This commit is contained in:
Brad King 2009-02-12 13:25:15 -05:00
parent 7435355ec8
commit 7590ad17ad
1 changed files with 1 additions and 0 deletions

View File

@ -2145,6 +2145,7 @@ void cmGlobalGenerator::WriteTargetLabels()
if(!opened)
{
fout.Open(fname.c_str());
opened = true;
}
fout << file << "\n";
}