From 7590ad17ad6c082dc4108f923642d3d94eade461 Mon Sep 17 00:00:00 2001 From: Brad King Date: Thu, 12 Feb 2009 13:25:15 -0500 Subject: [PATCH] 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. --- Source/cmGlobalGenerator.cxx | 1 + 1 file changed, 1 insertion(+) diff --git a/Source/cmGlobalGenerator.cxx b/Source/cmGlobalGenerator.cxx index fc104a065..4fc26f60d 100644 --- a/Source/cmGlobalGenerator.cxx +++ b/Source/cmGlobalGenerator.cxx @@ -2145,6 +2145,7 @@ void cmGlobalGenerator::WriteTargetLabels() if(!opened) { fout.Open(fname.c_str()); + opened = true; } fout << file << "\n"; }