mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-12 17:30:17 -06:00
cmNinjaTargetGenerator: Add OX X framework flags
Teach ComputeFlagsForObject to add -F flags just like the Makefile generator does.
This commit is contained in:
@@ -142,6 +142,10 @@ cmNinjaTargetGenerator::ComputeFlagsForObject(cmSourceFile const* source,
|
|||||||
this->LocalGenerator->AppendFlags(languageFlags,
|
this->LocalGenerator->AppendFlags(languageFlags,
|
||||||
this->Makefile->GetDefineFlags());
|
this->Makefile->GetDefineFlags());
|
||||||
|
|
||||||
|
// Add framework directory flags.
|
||||||
|
this->LocalGenerator->
|
||||||
|
AppendFlags(languageFlags, this->GetFrameworkFlags(language));
|
||||||
|
|
||||||
// Add target-specific flags.
|
// Add target-specific flags.
|
||||||
this->LocalGenerator->AddCompileOptions(languageFlags, this->Target,
|
this->LocalGenerator->AddCompileOptions(languageFlags, this->Target,
|
||||||
language,
|
language,
|
||||||
@@ -160,8 +164,6 @@ cmNinjaTargetGenerator::ComputeFlagsForObject(cmSourceFile const* source,
|
|||||||
this->LocalGenerator->AppendFlags(flags,
|
this->LocalGenerator->AppendFlags(flags,
|
||||||
source->GetProperty("COMPILE_FLAGS"));
|
source->GetProperty("COMPILE_FLAGS"));
|
||||||
|
|
||||||
// TODO: Handle Apple frameworks.
|
|
||||||
|
|
||||||
return flags;
|
return flags;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user