diff options
author | Alex Neundorf <neundorf@kde.org> | 2010-05-01 12:29:13 (GMT) |
---|---|---|
committer | Alex Neundorf <neundorf@kde.org> | 2010-05-01 18:38:28 (GMT) |
commit | 3901e0408c77c3a072ebd7f3276e2ebdf47bf5eb (patch) | |
tree | e84a53ee9e853e08a50b34c40b58e1a88963a0f5 /Source/cmMakefileTargetGenerator.cxx | |
parent | 42c40884d2ef3440c81d2ed13521573f24b12cf3 (diff) | |
download | CMake-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/cmMakefileTargetGenerator.cxx')
-rw-r--r-- | Source/cmMakefileTargetGenerator.cxx | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/Source/cmMakefileTargetGenerator.cxx b/Source/cmMakefileTargetGenerator.cxx index dd45950..124d2bd 100644 --- a/Source/cmMakefileTargetGenerator.cxx +++ b/Source/cmMakefileTargetGenerator.cxx @@ -294,10 +294,8 @@ void cmMakefileTargetGenerator::WriteTargetLanguageFlags() // Add language feature flags. this->AddFeatureFlags(flags, lang); -#ifdef __APPLE__ this->LocalGenerator->AddArchitectureFlags(flags, this->Target, lang, this->ConfigName); -#endif /* __APPLE__ */ // Fortran-specific flags computed for this target. if(*l == "Fortran") @@ -1439,11 +1437,15 @@ void cmMakefileTargetGenerator::WriteTargetDriverRule(const char* main_output, //---------------------------------------------------------------------------- std::string cmMakefileTargetGenerator::GetFrameworkFlags() { -#ifndef __APPLE__ - return std::string(); -#else - std::set<cmStdString> emitted; + if(!this->Makefile->IsOn("APPLE")) + { + return std::string(); + } + + std::set<cmStdString> emitted; +#ifdef __APPLE__ /* don't insert this when crosscompiling e.g. to iphone */ emitted.insert("/System/Library/Frameworks"); +#else std::vector<std::string> includes; this->LocalGenerator->GetIncludeDirectories(includes); std::vector<std::string>::iterator i; |