diff options
author | Brad King <brad.king@kitware.com> | 2016-05-27 13:08:21 (GMT) |
---|---|---|
committer | CMake Topic Stage <kwrobot@kitware.com> | 2016-05-27 13:08:21 (GMT) |
commit | fb1f5d50af2bc97b8dfe783998a66a7a4bea140e (patch) | |
tree | 1b55b11e2626dbf1dc948cce00094d528dbde7c1 /Source/cmLocalGenerator.cxx | |
parent | 82c286393afb15346431a8a3f601819698fcb87f (diff) | |
parent | 27ead963052b4c3f4e40ea9e6141ba9902ad310a (diff) | |
download | CMake-fb1f5d50af2bc97b8dfe783998a66a7a4bea140e.zip CMake-fb1f5d50af2bc97b8dfe783998a66a7a4bea140e.tar.gz CMake-fb1f5d50af2bc97b8dfe783998a66a7a4bea140e.tar.bz2 |
Merge topic 'remove-needless-copies'
27ead963 Remove unnecessary local copies.
618fb23f Pass arguments that are not modified as const&.
Diffstat (limited to 'Source/cmLocalGenerator.cxx')
-rw-r--r-- | Source/cmLocalGenerator.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Source/cmLocalGenerator.cxx b/Source/cmLocalGenerator.cxx index 2de12ba..e91eb46 100644 --- a/Source/cmLocalGenerator.cxx +++ b/Source/cmLocalGenerator.cxx @@ -1766,13 +1766,12 @@ static void AddVisibilityCompileOption(std::string& flags, const std::string& lang, std::string* warnCMP0063) { - std::string l(lang); - std::string compileOption = "CMAKE_" + l + "_COMPILE_OPTIONS_VISIBILITY"; + std::string compileOption = "CMAKE_" + lang + "_COMPILE_OPTIONS_VISIBILITY"; const char* opt = lg->GetMakefile()->GetDefinition(compileOption); if (!opt) { return; } - std::string flagDefine = l + "_VISIBILITY_PRESET"; + std::string flagDefine = lang + "_VISIBILITY_PRESET"; const char* prop = target->GetProperty(flagDefine); if (!prop) { |