diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2002-03-04 19:14:41 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2002-03-04 19:14:41 (GMT) |
commit | 076aafe79ad6272c5de826394ef4d2c872257cbe (patch) | |
tree | 5e031706fecc400e6543070ffb599a4a64b8be68 /Source/cmUnixMakefileGenerator.cxx | |
parent | 42c56a7cc7f4a8c301b04d55be86195ab8ac4339 (diff) | |
download | CMake-076aafe79ad6272c5de826394ef4d2c872257cbe.zip CMake-076aafe79ad6272c5de826394ef4d2c872257cbe.tar.gz CMake-076aafe79ad6272c5de826394ef4d2c872257cbe.tar.bz2 |
ENH: add file specific compile flags
Diffstat (limited to 'Source/cmUnixMakefileGenerator.cxx')
-rw-r--r-- | Source/cmUnixMakefileGenerator.cxx | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/Source/cmUnixMakefileGenerator.cxx b/Source/cmUnixMakefileGenerator.cxx index e79034d..721a5e7 100644 --- a/Source/cmUnixMakefileGenerator.cxx +++ b/Source/cmUnixMakefileGenerator.cxx @@ -1360,7 +1360,7 @@ void cmUnixMakefileGenerator::OutputCustomRules(std::ostream& fout) buildRules.begin(); cc != buildRules.end(); ++ cc) { std::string source = cc->first; - const cmSourceGroup::Commands& commands = cc->second; + const cmSourceGroup::Commands& commands = cc->second.m_Commands; // Loop through every command generating code from the current source. for(cmSourceGroup::Commands::const_iterator c = commands.begin(); c != commands.end(); ++c) @@ -1918,6 +1918,11 @@ void cmUnixMakefileGenerator::OutputSourceObjectBuildRules(std::ostream& fout) // Only output a rule for each .o once. if(rules.find(shortNameWithExt) == rules.end()) { + if(source->GetCompileFlags()) + { + exportsDef += source->GetCompileFlags(); + exportsDef += " "; + } this->OutputBuildObjectFromSource(fout, shortName.c_str(), *source, |