removed extra lib paths to avoid finding old libs
This commit is contained in:
parent
fcb647bae4
commit
a99f293e3a
|
@ -70,12 +70,17 @@ bool cmLinkLibrariesCommand::InitialPass(std::vector<std::string> const& args)
|
||||||
m_Makefile->AddLinkLibrary(i->c_str());
|
m_Makefile->AddLinkLibrary(i->c_str());
|
||||||
}
|
}
|
||||||
|
|
||||||
const char* dir = m_Makefile->GetDefinition(i->c_str());
|
const char* ldir = m_Makefile->GetDefinition("LIBRARY_OUTPUT_PATH");
|
||||||
if( dir )
|
if (cmSystemTools::IsOff(ldir))
|
||||||
{
|
{
|
||||||
m_Makefile->AddLinkDirectory( dir );
|
const char* dir = m_Makefile->GetDefinition(i->c_str());
|
||||||
|
if( dir )
|
||||||
|
{
|
||||||
|
m_Makefile->AddLinkDirectory( dir );
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue