-fix linking to frameworks when crosscompiling from Linux to iPhone (#10526)

Alex
This commit is contained in:
Alex Neundorf 2010-04-19 20:28:29 +02:00
parent 45d9106eef
commit b3843bab60

View File

@ -1326,13 +1326,14 @@ void cmComputeLinkInformation::AddFrameworkItem(std::string const& item)
//---------------------------------------------------------------------------- //----------------------------------------------------------------------------
void cmComputeLinkInformation::AddDirectoryItem(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())) if(cmSystemTools::IsPathToFramework(item.c_str()))
{ {
this->AddFrameworkItem(item); this->AddFrameworkItem(item);
} }
else else
#endif
{ {
this->DropDirectoryItem(item); this->DropDirectoryItem(item);
} }