diff options
author | Brad King <brad.king@kitware.com> | 2020-03-30 14:54:44 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2020-04-01 14:56:00 (GMT) |
commit | ff02a592bc56f024ac141586b3345aba080af401 (patch) | |
tree | a16076f52815a947c88654764aca3bd635002fce /Source/cmLocalGenerator.cxx | |
parent | a4b76c237db778ffe2529aa64ab5b7fd4055a139 (diff) | |
download | CMake-ff02a592bc56f024ac141586b3345aba080af401.zip CMake-ff02a592bc56f024ac141586b3345aba080af401.tar.gz CMake-ff02a592bc56f024ac141586b3345aba080af401.tar.bz2 |
cmLocalGenerator: Avoid using upper-case config when not necessary
Calls to `GetLinkerLanguage`, `GetSourceFiles`, etc. can accept
the original-case config name.
Diffstat (limited to 'Source/cmLocalGenerator.cxx')
-rw-r--r-- | Source/cmLocalGenerator.cxx | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/Source/cmLocalGenerator.cxx b/Source/cmLocalGenerator.cxx index be66043..55f61ea 100644 --- a/Source/cmLocalGenerator.cxx +++ b/Source/cmLocalGenerator.cxx @@ -1357,7 +1357,7 @@ void cmLocalGenerator::GetTargetFlags( "CMAKE_SHARED_LINKER_FLAGS"; // default to shared library const std::string linkLanguage = - linkLineComputer->GetLinkerLanguage(target, configUpper); + linkLineComputer->GetLinkerLanguage(target, config); switch (target->GetType()) { case cmStateEnums::STATIC_LIBRARY: @@ -1386,7 +1386,7 @@ void cmLocalGenerator::GetTargetFlags( !(this->Makefile->IsOn("CYGWIN") || this->Makefile->IsOn("MINGW"))) { std::vector<cmSourceFile*> sources; - target->GetSourceFiles(sources, configUpper); + target->GetSourceFiles(sources, config); std::string defFlag = this->Makefile->GetSafeDefinition("CMAKE_LINK_DEF_FILE_FLAG"); for (cmSourceFile* sf : sources) { @@ -1461,8 +1461,7 @@ void cmLocalGenerator::GetTargetFlags( } } - this->AddLanguageFlagsForLinking(flags, target, linkLanguage, - configUpper); + this->AddLanguageFlagsForLinking(flags, target, linkLanguage, config); if (pcli) { this->OutputLinkLibraries(pcli, linkLineComputer, linkLibs, frameworkPath, linkPath); |