summaryrefslogtreecommitdiffstats
path: root/Source/cmFindCommon.cxx
diff options
context:
space:
mode:
authorAlex Neundorf <neundorf@kde.org>2010-05-01 12:29:13 (GMT)
committerAlex Neundorf <neundorf@kde.org>2010-05-01 18:38:28 (GMT)
commit3901e0408c77c3a072ebd7f3276e2ebdf47bf5eb (patch)
treee84a53ee9e853e08a50b34c40b58e1a88963a0f5 /Source/cmFindCommon.cxx
parent42c40884d2ef3440c81d2ed13521573f24b12cf3 (diff)
downloadCMake-3901e0408c77c3a072ebd7f3276e2ebdf47bf5eb.zip
CMake-3901e0408c77c3a072ebd7f3276e2ebdf47bf5eb.tar.gz
CMake-3901e0408c77c3a072ebd7f3276e2ebdf47bf5eb.tar.bz2
-improve crosscompiling from Linux to iphone (#10526)
Patch by Karol Krizka Alex
Diffstat (limited to 'Source/cmFindCommon.cxx')
-rw-r--r--Source/cmFindCommon.cxx14
1 files changed, 14 insertions, 0 deletions
diff --git a/Source/cmFindCommon.cxx b/Source/cmFindCommon.cxx
index f4c0064..f352172 100644
--- a/Source/cmFindCommon.cxx
+++ b/Source/cmFindCommon.cxx
@@ -423,3 +423,17 @@ void cmFindCommon::AddTrailingSlashes(std::vector<std::string>& paths)
}
}
}
+
+//----------------------------------------------------------------------------
+void cmFindCommon::SetMakefile(cmMakefile* makefile)
+{
+ cmCommand::SetMakefile(makefile);
+
+ // If we are building for Apple (OSX or also iphone), make sure
+ // that frameworks and bundles are searched first.
+ if(this->Makefile->IsOn("APPLE"))
+ {
+ this->SearchFrameworkFirst = true;
+ this->SearchAppBundleFirst = true;
+ }
+}