summaryrefslogtreecommitdiffstats
path: root/Source/cmComputeLinkInformation.cxx
diff options
context:
space:
mode:
authorAlex Neundorf <neundorf@kde.org>2010-04-27 19:40:17 (GMT)
committerAlex Neundorf <neundorf@kde.org>2010-04-27 19:40:17 (GMT)
commit0feb0b2d729f28a152a7bc330c407c223e845d6c (patch)
tree6d81f192f41281527e17639ef95e0acdbfcfd931 /Source/cmComputeLinkInformation.cxx
parent1da611fd46818a33abf7179e1a82518b2c90421e (diff)
downloadCMake-0feb0b2d729f28a152a7bc330c407c223e845d6c.zip
CMake-0feb0b2d729f28a152a7bc330c407c223e845d6c.tar.gz
CMake-0feb0b2d729f28a152a7bc330c407c223e845d6c.tar.bz2
-fix bad check for Apple in AddDirectoryItem() introduced recently
Alex
Diffstat (limited to 'Source/cmComputeLinkInformation.cxx')
-rw-r--r--Source/cmComputeLinkInformation.cxx6
1 files changed, 2 insertions, 4 deletions
diff --git a/Source/cmComputeLinkInformation.cxx b/Source/cmComputeLinkInformation.cxx
index 9236ad572..1cabed2 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);
}