summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2002-12-02 15:33:35 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2002-12-02 15:33:35 (GMT)
commit3851ac2416a5fd53759128d22dd5ead3da7922dd (patch)
treeb0b24d2f74c962ba7a8bbf8b26b860d6afaccabf /Source
parent43a44365519c99d87ae2759786ebf02a06072407 (diff)
downloadCMake-3851ac2416a5fd53759128d22dd5ead3da7922dd.zip
CMake-3851ac2416a5fd53759128d22dd5ead3da7922dd.tar.gz
CMake-3851ac2416a5fd53759128d22dd5ead3da7922dd.tar.bz2
BUG: fix compile flags for a single file
Diffstat (limited to 'Source')
-rw-r--r--Source/cmLocalUnixMakefileGenerator.cxx8
1 files changed, 5 insertions, 3 deletions
diff --git a/Source/cmLocalUnixMakefileGenerator.cxx b/Source/cmLocalUnixMakefileGenerator.cxx
index 5c9d260..7ab9b2a 100644
--- a/Source/cmLocalUnixMakefileGenerator.cxx
+++ b/Source/cmLocalUnixMakefileGenerator.cxx
@@ -2371,17 +2371,19 @@ void cmLocalUnixMakefileGenerator::OutputSourceObjectBuildRules(std::ostream& fo
std::string shortNameWithExt = shortName +
(*source)->GetSourceExtension();
// Only output a rule for each .o once.
+ std::string compileFlags = exportsDef;
+ compileFlags += " ";
if(rules.find(shortNameWithExt) == rules.end())
{
+
if((*source)->GetProperty("COMPILE_FLAGS"))
{
- exportsDef += (*source)->GetProperty("COMPILE_FLAGS");
- exportsDef += " ";
+ compileFlags += (*source)->GetProperty("COMPILE_FLAGS");
}
this->OutputBuildObjectFromSource(fout,
shortName.c_str(),
*(*source),
- exportsDef.c_str(),
+ compileFlags.c_str(),
shared);
rules.insert(shortNameWithExt);
}