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

View File

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