Merge topic 'xcode-framework-paths'
21a0bea Xcode: Fix framework search paths in STATIC library targets (#14191)
This commit is contained in:
commit
aa025cc60a
@ -2087,20 +2087,16 @@ void cmGlobalXCodeGenerator::CreateBuildSettings(cmTarget& target,
|
|||||||
dirs.Add(incpath.c_str());
|
dirs.Add(incpath.c_str());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if(target.GetType() != cmTarget::OBJECT_LIBRARY &&
|
// Add framework search paths needed for linking.
|
||||||
target.GetType() != cmTarget::STATIC_LIBRARY)
|
if(cmComputeLinkInformation* cli = target.GetLinkInformation(configName))
|
||||||
{
|
{
|
||||||
// Add framework search paths needed for linking.
|
std::vector<std::string> const& fwDirs = cli->GetFrameworkPaths();
|
||||||
if(cmComputeLinkInformation* cli = target.GetLinkInformation(configName))
|
for(std::vector<std::string>::const_iterator fdi = fwDirs.begin();
|
||||||
|
fdi != fwDirs.end(); ++fdi)
|
||||||
{
|
{
|
||||||
std::vector<std::string> const& fwDirs = cli->GetFrameworkPaths();
|
if(emitted.insert(*fdi).second)
|
||||||
for(std::vector<std::string>::const_iterator fdi = fwDirs.begin();
|
|
||||||
fdi != fwDirs.end(); ++fdi)
|
|
||||||
{
|
{
|
||||||
if(emitted.insert(*fdi).second)
|
fdirs.Add(this->XCodeEscapePath(fdi->c_str()).c_str());
|
||||||
{
|
|
||||||
fdirs.Add(this->XCodeEscapePath(fdi->c_str()).c_str());
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user