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:
parent
7435355ec8
commit
7590ad17ad
|
@ -2145,6 +2145,7 @@ void cmGlobalGenerator::WriteTargetLabels()
|
||||||
if(!opened)
|
if(!opened)
|
||||||
{
|
{
|
||||||
fout.Open(fname.c_str());
|
fout.Open(fname.c_str());
|
||||||
|
opened = true;
|
||||||
}
|
}
|
||||||
fout << file << "\n";
|
fout << file << "\n";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue