cmLocalGenerator: Move variable population inside of condition.
It is only used in the condition, so no need to look for uses elsewhere when reading the code.
This commit is contained in:
parent
cfb8483412
commit
26602cf56c
|
@ -1952,14 +1952,13 @@ void cmLocalGenerator::OutputLinkLibraries(std::string& linkLibraries,
|
||||||
// Write the library flags to the build rule.
|
// Write the library flags to the build rule.
|
||||||
fout << linkLibs;
|
fout << linkLibs;
|
||||||
|
|
||||||
// Get the RPATH entries.
|
|
||||||
std::vector<std::string> runtimeDirs;
|
|
||||||
cli.GetRPath(runtimeDirs, relink);
|
|
||||||
|
|
||||||
// Check what kind of rpath flags to use.
|
// Check what kind of rpath flags to use.
|
||||||
if(cli.GetRuntimeSep().empty())
|
if(cli.GetRuntimeSep().empty())
|
||||||
{
|
{
|
||||||
// Each rpath entry gets its own option ("-R a -R b -R c")
|
// Each rpath entry gets its own option ("-R a -R b -R c")
|
||||||
|
std::vector<std::string> runtimeDirs;
|
||||||
|
cli.GetRPath(runtimeDirs, relink);
|
||||||
|
|
||||||
std::string rpath;
|
std::string rpath;
|
||||||
for(std::vector<std::string>::iterator ri = runtimeDirs.begin();
|
for(std::vector<std::string>::iterator ri = runtimeDirs.begin();
|
||||||
ri != runtimeDirs.end(); ++ri)
|
ri != runtimeDirs.end(); ++ri)
|
||||||
|
|
Loading…
Reference in New Issue