Skip to content
Snippets Groups Projects
Commit 6b31d395 authored by Peter Kuemmel's avatar Peter Kuemmel Committed by David Cole
Browse files

Ninja: don't shadow 'outputs' variable

parent 9b311fbe
No related branches found
No related tags found
No related merge requests found
......@@ -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,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment