From b3843bab6045c38b35fb8a2463fdfdf9fc9d7db3 Mon Sep 17 00:00:00 2001 From: Alex Neundorf Date: Mon, 19 Apr 2010 20:28:29 +0200 Subject: -fix linking to frameworks when crosscompiling from Linux to iPhone (#10526) Alex --- Source/cmComputeLinkInformation.cxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Source/cmComputeLinkInformation.cxx b/Source/cmComputeLinkInformation.cxx index d84da52..9236ad572 100644 --- a/Source/cmComputeLinkInformation.cxx +++ b/Source/cmComputeLinkInformation.cxx @@ -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); } -- cgit v0.12