summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2009-02-12 18:25:15 (GMT)
committerBrad King <brad.king@kitware.com>2009-02-12 18:25:15 (GMT)
commit7590ad17ad6c082dc4108f923642d3d94eade461 (patch)
tree1c8cb7e780aa355a4a060b5d79291c184730e0e4 /Source
parent7435355ec8ca10d3d6ef07d975e1f0d9a60b681d (diff)
downloadCMake-7590ad17ad6c082dc4108f923642d3d94eade461.zip
CMake-7590ad17ad6c082dc4108f923642d3d94eade461.tar.gz
CMake-7590ad17ad6c082dc4108f923642d3d94eade461.tar.bz2
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.
Diffstat (limited to 'Source')
-rw-r--r--Source/cmGlobalGenerator.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/Source/cmGlobalGenerator.cxx b/Source/cmGlobalGenerator.cxx
index fc104a0..4fc26f6 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";
}