diff options
author | Brad King <brad.king@kitware.com> | 2019-04-01 17:38:55 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2019-04-02 18:23:46 (GMT) |
commit | 707283981fd455bf0bf3ec62a669cf1c0a2e1edb (patch) | |
tree | 4dcb318f8813a7c93241bf82dfe0b4105542c570 /Source/cmVisualStudio10TargetGenerator.cxx | |
parent | 8ca1b262863d8a5cbb8306a52873101c2e940f78 (diff) | |
download | CMake-707283981fd455bf0bf3ec62a669cf1c0a2e1edb.zip CMake-707283981fd455bf0bf3ec62a669cf1c0a2e1edb.tar.gz CMake-707283981fd455bf0bf3ec62a669cf1c0a2e1edb.tar.bz2 |
VS: Use AddLanguageFlags to de-duplicate CMAKE_<LANG>_FLAGS* lookup
Diffstat (limited to 'Source/cmVisualStudio10TargetGenerator.cxx')
-rw-r--r-- | Source/cmVisualStudio10TargetGenerator.cxx | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/Source/cmVisualStudio10TargetGenerator.cxx b/Source/cmVisualStudio10TargetGenerator.cxx index 8804e6c..5195957 100644 --- a/Source/cmVisualStudio10TargetGenerator.cxx +++ b/Source/cmVisualStudio10TargetGenerator.cxx @@ -2540,14 +2540,8 @@ bool cmVisualStudio10TargetGenerator::ComputeClOptions( } this->LangForClCompile = langForClCompile; if (!langForClCompile.empty()) { - std::string baseFlagVar = "CMAKE_"; - baseFlagVar += langForClCompile; - baseFlagVar += "_FLAGS"; - flags = this->Makefile->GetRequiredDefinition(baseFlagVar); - std::string flagVar = - baseFlagVar + "_" + cmSystemTools::UpperCase(configName); - flags += " "; - flags += this->Makefile->GetRequiredDefinition(flagVar); + this->LocalGenerator->AddLanguageFlags(flags, this->GeneratorTarget, + langForClCompile, configName); this->LocalGenerator->AddCompileOptions(flags, this->GeneratorTarget, langForClCompile, configName); } |