summaryrefslogtreecommitdiffstats
path: root/Source/cmLocalVisualStudio7Generator.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2019-04-01 17:38:55 (GMT)
committerBrad King <brad.king@kitware.com>2019-04-02 18:23:46 (GMT)
commit707283981fd455bf0bf3ec62a669cf1c0a2e1edb (patch)
tree4dcb318f8813a7c93241bf82dfe0b4105542c570 /Source/cmLocalVisualStudio7Generator.cxx
parent8ca1b262863d8a5cbb8306a52873101c2e940f78 (diff)
downloadCMake-707283981fd455bf0bf3ec62a669cf1c0a2e1edb.zip
CMake-707283981fd455bf0bf3ec62a669cf1c0a2e1edb.tar.gz
CMake-707283981fd455bf0bf3ec62a669cf1c0a2e1edb.tar.bz2
VS: Use AddLanguageFlags to de-duplicate CMAKE_<LANG>_FLAGS* lookup
Diffstat (limited to 'Source/cmLocalVisualStudio7Generator.cxx')
-rw-r--r--Source/cmLocalVisualStudio7Generator.cxx9
1 files changed, 1 insertions, 8 deletions
diff --git a/Source/cmLocalVisualStudio7Generator.cxx b/Source/cmLocalVisualStudio7Generator.cxx
index e519d78..7ba3471 100644
--- a/Source/cmLocalVisualStudio7Generator.cxx
+++ b/Source/cmLocalVisualStudio7Generator.cxx
@@ -662,14 +662,7 @@ void cmLocalVisualStudio7Generator::WriteConfiguration(
langForClCompile = linkLanguage;
if (langForClCompile == "C" || langForClCompile == "CXX" ||
langForClCompile == "Fortran") {
- std::string baseFlagVar = "CMAKE_";
- baseFlagVar += langForClCompile;
- baseFlagVar += "_FLAGS";
- flags = this->Makefile->GetRequiredDefinition(baseFlagVar);
- std::string flagVar =
- baseFlagVar + std::string("_") + cmSystemTools::UpperCase(configName);
- flags += " ";
- flags += this->Makefile->GetRequiredDefinition(flagVar);
+ this->AddLanguageFlags(flags, target, langForClCompile, configName);
}
// set the correct language
if (linkLanguage == "C") {