BUG: fix for bug number 3964

This commit is contained in:
Ken Martin 2007-02-01 11:33:30 -05:00
parent 58bf0dbac1
commit f46704fefe
1 changed files with 9 additions and 0 deletions

View File

@ -279,6 +279,15 @@ void cmMakefileTargetGenerator::WriteTargetLanguageFlags()
*this->FlagFileStream << lang << "_FLAGS = " << flags << "\n\n";
}
// Add target-specific flags.
if(this->Target->GetProperty("COMPILE_FLAGS"))
{
std::string flags;
this->LocalGenerator->AppendFlags
(flags, this->Target->GetProperty("COMPILE_FLAGS"));
*this->FlagFileStream << "# TARGET_FLAGS = " << flags << "\n\n";
}
}
//----------------------------------------------------------------------------