From f46704fefe53b81285a545e0214feda64e383648 Mon Sep 17 00:00:00 2001 From: Ken Martin Date: Thu, 1 Feb 2007 11:33:30 -0500 Subject: BUG: fix for bug number 3964 --- Source/cmMakefileTargetGenerator.cxx | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Source/cmMakefileTargetGenerator.cxx b/Source/cmMakefileTargetGenerator.cxx index e941f58..3f4ae14 100644 --- a/Source/cmMakefileTargetGenerator.cxx +++ b/Source/cmMakefileTargetGenerator.cxx @@ -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"; + } } //---------------------------------------------------------------------------- -- cgit v0.12