From 0feb0b2d729f28a152a7bc330c407c223e845d6c Mon Sep 17 00:00:00 2001 From: Alex Neundorf Date: Tue, 27 Apr 2010 21:40:17 +0200 Subject: [PATCH] -fix bad check for Apple in AddDirectoryItem() introduced recently Alex --- Source/cmComputeLinkInformation.cxx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Source/cmComputeLinkInformation.cxx b/Source/cmComputeLinkInformation.cxx index 9236ad572..1cabed2c5 100644 --- a/Source/cmComputeLinkInformation.cxx +++ b/Source/cmComputeLinkInformation.cxx @@ -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); }