summaryrefslogtreecommitdiffstats
path: root/Source/cmNinjaTargetGenerator.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2015-07-09 14:04:01 (GMT)
committerBrad King <brad.king@kitware.com>2015-07-09 14:04:10 (GMT)
commitf4875bbdd6cc090f5c79f358c55c8b936c6254fd (patch)
tree16120043061a9514e7e5c3858babbaadaab9ff15 /Source/cmNinjaTargetGenerator.cxx
parent7891f5d7e70e650cac940a4b942390492191e656 (diff)
downloadCMake-f4875bbdd6cc090f5c79f358c55c8b936c6254fd.zip
CMake-f4875bbdd6cc090f5c79f358c55c8b936c6254fd.tar.gz
CMake-f4875bbdd6cc090f5c79f358c55c8b936c6254fd.tar.bz2
cmNinjaTargetGenerator: Add OX X framework flags
Teach ComputeFlagsForObject to add -F flags just like the Makefile generator does.
Diffstat (limited to 'Source/cmNinjaTargetGenerator.cxx')
-rw-r--r--Source/cmNinjaTargetGenerator.cxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/Source/cmNinjaTargetGenerator.cxx b/Source/cmNinjaTargetGenerator.cxx
index 6ae45a9..cd54c4d 100644
--- a/Source/cmNinjaTargetGenerator.cxx
+++ b/Source/cmNinjaTargetGenerator.cxx
@@ -142,6 +142,10 @@ cmNinjaTargetGenerator::ComputeFlagsForObject(cmSourceFile const* source,
this->LocalGenerator->AppendFlags(languageFlags,
this->Makefile->GetDefineFlags());
+ // Add framework directory flags.
+ this->LocalGenerator->
+ AppendFlags(languageFlags, this->GetFrameworkFlags(language));
+
// Add target-specific flags.
this->LocalGenerator->AddCompileOptions(languageFlags, this->Target,
language,
@@ -160,8 +164,6 @@ cmNinjaTargetGenerator::ComputeFlagsForObject(cmSourceFile const* source,
this->LocalGenerator->AppendFlags(flags,
source->GetProperty("COMPILE_FLAGS"));
- // TODO: Handle Apple frameworks.
-
return flags;
}