summaryrefslogtreecommitdiffstats
path: root/Source/cmMakefileLibraryTargetGenerator.cxx
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2006-03-06 20:14:23 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2006-03-06 20:14:23 (GMT)
commit3f532f54897d300e17d35630d3d6ba15a719bd27 (patch)
tree56b3bf4cc8a4b505a2a5c2460574d5d458962ef6 /Source/cmMakefileLibraryTargetGenerator.cxx
parent36080b04bbf07fdecdfaf516949f722a65aa9361 (diff)
downloadCMake-3f532f54897d300e17d35630d3d6ba15a719bd27.zip
CMake-3f532f54897d300e17d35630d3d6ba15a719bd27.tar.gz
CMake-3f532f54897d300e17d35630d3d6ba15a719bd27.tar.bz2
ENH: add support for language flags at rule expansion time
Diffstat (limited to 'Source/cmMakefileLibraryTargetGenerator.cxx')
-rw-r--r--Source/cmMakefileLibraryTargetGenerator.cxx6
1 files changed, 5 insertions, 1 deletions
diff --git a/Source/cmMakefileLibraryTargetGenerator.cxx b/Source/cmMakefileLibraryTargetGenerator.cxx
index a5b6154..ade1696 100644
--- a/Source/cmMakefileLibraryTargetGenerator.cxx
+++ b/Source/cmMakefileLibraryTargetGenerator.cxx
@@ -431,7 +431,11 @@ void cmMakefileLibraryTargetGenerator::WriteLibraryRules
vars.TargetInstallNameDir = install_name_dir.c_str();
}
}
-
+ std::string langFlags;
+ this->LocalGenerator
+ ->AddLanguageFlags(langFlags, linkLanguage,
+ this->LocalGenerator->m_ConfigurationName.c_str());
+ vars.LanguageCompileFlags = langFlags.c_str();
// Expand placeholders in the commands.
this->LocalGenerator->m_TargetImplib = targetOutPathImport;
for(std::vector<std::string>::iterator i = commands.begin();