-fix bad check for Apple in AddDirectoryItem() introduced recently

Alex
This commit is contained in:
Alex Neundorf 2010-04-27 21:40:17 +02:00
parent 1da611fd46
commit 0feb0b2d72

View File

@ -1326,10 +1326,8 @@ void cmComputeLinkInformation::AddFrameworkItem(std::string const& item)
//---------------------------------------------------------------------------- //----------------------------------------------------------------------------
void cmComputeLinkInformation::AddDirectoryItem(std::string const& item) void cmComputeLinkInformation::AddDirectoryItem(std::string const& item)
{ {
std::string systemName = if(this->Makefile->IsOn("APPLE")
this->Makefile->GetSafeDefinition("CMAKE_SYSTEM_NAME"); && cmSystemTools::IsPathToFramework(item.c_str()))
if(systemName == "Darwin" && cmSystemTools::IsPathToFramework(item.c_str()))
if(cmSystemTools::IsPathToFramework(item.c_str()))
{ {
this->AddFrameworkItem(item); this->AddFrameworkItem(item);
} }