mirror of
https://github.com/Kitware/CMake.git
synced 2026-08-09 17:18:18 +00:00
-fix linking to frameworks when crosscompiling from Linux to iPhone (#10526)
Alex
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user