summaryrefslogtreecommitdiffstats
path: root/Source/cmMakefileTargetGenerator.cxx
diff options
context:
space:
mode:
authorKen Martin <ken.martin@kitware.com>2007-02-01 16:33:30 (GMT)
committerKen Martin <ken.martin@kitware.com>2007-02-01 16:33:30 (GMT)
commitf46704fefe53b81285a545e0214feda64e383648 (patch)
tree06042645a6b9dc4ee65f23cb6d9fcb0ecd1c3323 /Source/cmMakefileTargetGenerator.cxx
parent58bf0dbac1ab2d394b1e0c9a47520ec37a7aaf8a (diff)
downloadCMake-f46704fefe53b81285a545e0214feda64e383648.zip
CMake-f46704fefe53b81285a545e0214feda64e383648.tar.gz
CMake-f46704fefe53b81285a545e0214feda64e383648.tar.bz2
BUG: fix for bug number 3964
Diffstat (limited to 'Source/cmMakefileTargetGenerator.cxx')
-rw-r--r--Source/cmMakefileTargetGenerator.cxx9
1 files changed, 9 insertions, 0 deletions
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";
+ }
}
//----------------------------------------------------------------------------