From 6b31d395513fe8ea7b17489b7235c16c1ebad7e1 Mon Sep 17 00:00:00 2001 From: Peter Kuemmel Date: Fri, 6 Jul 2012 10:16:45 +0200 Subject: [PATCH] Ninja: don't shadow 'outputs' variable --- Source/cmNinjaNormalTargetGenerator.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Source/cmNinjaNormalTargetGenerator.cxx b/Source/cmNinjaNormalTargetGenerator.cxx index 4787cb31b..0cf90aa8f 100644 --- a/Source/cmNinjaNormalTargetGenerator.cxx +++ b/Source/cmNinjaNormalTargetGenerator.cxx @@ -508,20 +508,20 @@ void cmNinjaNormalTargetGenerator::WriteLinkStatement() emptyDeps, symlinkVars); } else { - cmNinjaDeps outputs; + cmNinjaDeps symlinks; const std::string soName = this->GetTargetFilePath(this->TargetNameSO); // If one link has to be created. if (targetOutputReal == soName || targetOutput == soName) { symlinkVars["SONAME"] = soName; } else { symlinkVars["SONAME"] = ""; - outputs.push_back(soName); + symlinks.push_back(soName); } - outputs.push_back(targetOutput); + symlinks.push_back(targetOutput); cmGlobalNinjaGenerator::WriteBuild(this->GetBuildFileStream(), "Create library symlink " + targetOutput, "CMAKE_SYMLINK_LIBRARY", - outputs, + symlinks, cmNinjaDeps(1, targetOutputReal), emptyDeps, emptyDeps,