summaryrefslogtreecommitdiffstats
path: root/Source/cmJsonObjects.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2019-08-07 15:45:02 (GMT)
committerKitware Robot <kwrobot@kitware.com>2019-08-07 15:54:53 (GMT)
commitbbf4a5771f8113ce5b88968c4dd3def2fbcd9354 (patch)
treef24c69250b525f26c2d0cb100468f74d08bccabb /Source/cmJsonObjects.cxx
parentdd53122be5b142e97ac02d1dec62719db29bc39e (diff)
parent18b0330b86cae2771a54021e390f157a097c8a99 (diff)
downloadCMake-bbf4a5771f8113ce5b88968c4dd3def2fbcd9354.zip
CMake-bbf4a5771f8113ce5b88968c4dd3def2fbcd9354.tar.gz
CMake-bbf4a5771f8113ce5b88968c4dd3def2fbcd9354.tar.bz2
Merge topic 'tidy_inefficient_string'
18b0330b86 clang-tidy: Enable performance-inefficient-string-concatenation Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3648
Diffstat (limited to 'Source/cmJsonObjects.cxx')
-rw-r--r--Source/cmJsonObjects.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/cmJsonObjects.cxx b/Source/cmJsonObjects.cxx
index 953333c..b8eed13 100644
--- a/Source/cmJsonObjects.cxx
+++ b/Source/cmJsonObjects.cxx
@@ -501,9 +501,9 @@ static Json::Value DumpTarget(cmGeneratorTarget* target,
if (!dest.empty() && cmSystemTools::FileIsFullPath(dest)) {
installPath = dest;
} else {
- std::string installPrefix =
- target->Makefile->GetSafeDefinition("CMAKE_INSTALL_PREFIX");
- installPath = installPrefix + '/' + dest;
+ installPath = cmStrCat(
+ target->Makefile->GetSafeDefinition("CMAKE_INSTALL_PREFIX"), '/',
+ dest);
}
installPaths.append(installPath);