-fix linking to frameworks when crosscompiling from Linux to iPhone (#10526)
Alex
This commit is contained in:
parent
45d9106eef
commit
b3843bab60
|
@ -1326,13 +1326,14 @@ void cmComputeLinkInformation::AddFrameworkItem(std::string const& item)
|
|||
//----------------------------------------------------------------------------
|
||||
void cmComputeLinkInformation::AddDirectoryItem(std::string const& item)
|
||||
{
|
||||
#ifdef __APPLE__
|
||||
std::string systemName =
|
||||
this->Makefile->GetSafeDefinition("CMAKE_SYSTEM_NAME");
|
||||
if(systemName == "Darwin" && cmSystemTools::IsPathToFramework(item.c_str()))
|
||||
if(cmSystemTools::IsPathToFramework(item.c_str()))
|
||||
{
|
||||
this->AddFrameworkItem(item);
|
||||
}
|
||||
else
|
||||
#endif
|
||||
{
|
||||
this->DropDirectoryItem(item);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue