summaryrefslogtreecommitdiff
path: root/Source/cmSetPropertyCommand.cxx
diff options
context:
space:
mode:
authorBen Boeckel <ben.boeckel@kitware.com>2021-01-22 10:37:10 -0500
committerBen Boeckel <ben.boeckel@kitware.com>2021-01-27 08:45:44 -0500
commit4f396e6528ae6bfc4b847fa7d67d8e24a3dd4933 (patch)
tree0b190ef2c405584e9c54cd74696b002a8c55df8a /Source/cmSetPropertyCommand.cxx
parent3a0d40bf8c838fd94b716b60d1e161066d57e68a (diff)
downloadcmake-4f396e6528ae6bfc4b847fa7d67d8e24a3dd4933.tar.gz
clang-tidy: fix `performance-no-automatic-move` warnings
Diffstat (limited to 'Source/cmSetPropertyCommand.cxx')
-rw-r--r--Source/cmSetPropertyCommand.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmSetPropertyCommand.cxx b/Source/cmSetPropertyCommand.cxx
index 970564de9f..1a3aab8f83 100644
--- a/Source/cmSetPropertyCommand.cxx
+++ b/Source/cmSetPropertyCommand.cxx
@@ -189,7 +189,7 @@ std::string MakeSourceFilePathAbsoluteIfNeeded(
if (!needed) {
return source_file_path;
}
- const std::string absolute_file_path = cmSystemTools::CollapseFullPath(
+ std::string absolute_file_path = cmSystemTools::CollapseFullPath(
source_file_path, status.GetMakefile().GetCurrentSourceDirectory());
return absolute_file_path;
}