summaryrefslogtreecommitdiffstats
path: root/Source/cmLocalGenerator.cxx
diff options
context:
space:
mode:
authorTobias Hunger <tobias.hunger@qt.io>2016-06-07 14:30:58 (GMT)
committerBrad King <brad.king@kitware.com>2016-06-08 20:18:31 (GMT)
commitb0d3e693f1ab466451c7a0d17bbbdd3cae76e93a (patch)
treeb2eca1da7409310744f707274e83b48884053662 /Source/cmLocalGenerator.cxx
parentba92e11f8b461513566d5cc3c0b53b2215bb85f7 (diff)
downloadCMake-b0d3e693f1ab466451c7a0d17bbbdd3cae76e93a.zip
CMake-b0d3e693f1ab466451c7a0d17bbbdd3cae76e93a.tar.gz
CMake-b0d3e693f1ab466451c7a0d17bbbdd3cae76e93a.tar.bz2
cmLocalGenerator: Pass configuration to GetTargetFlags
Move the configuration lookup to call sites. This will allow multi-configuration callers to use the method.
Diffstat (limited to 'Source/cmLocalGenerator.cxx')
-rw-r--r--Source/cmLocalGenerator.cxx10
1 files changed, 4 insertions, 6 deletions
diff --git a/Source/cmLocalGenerator.cxx b/Source/cmLocalGenerator.cxx
index b748b9c..b369420 100644
--- a/Source/cmLocalGenerator.cxx
+++ b/Source/cmLocalGenerator.cxx
@@ -1152,13 +1152,11 @@ void cmLocalGenerator::GetStaticLibraryFlags(std::string& flags,
}
void cmLocalGenerator::GetTargetFlags(
- std::string& linkLibs, std::string& flags, std::string& linkFlags,
- std::string& frameworkPath, std::string& linkPath, cmGeneratorTarget* target,
- bool useWatcomQuote)
+ const std::string& config, std::string& linkLibs, std::string& flags,
+ std::string& linkFlags, std::string& frameworkPath, std::string& linkPath,
+ cmGeneratorTarget* target, bool useWatcomQuote)
{
- std::string buildType =
- this->Makefile->GetSafeDefinition("CMAKE_BUILD_TYPE");
- buildType = cmSystemTools::UpperCase(buildType);
+ const std::string buildType = cmSystemTools::UpperCase(config);
const char* libraryLinkVariable =
"CMAKE_SHARED_LINKER_FLAGS"; // default to shared library