-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
1 changed files with 3 additions and 2 deletions

View File

@ -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);
}