summaryrefslogtreecommitdiffstats
path: root/Source/cmInstallDirectoryGenerator.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2020-01-21 14:21:42 (GMT)
committerKitware Robot <kwrobot@kitware.com>2020-01-21 14:21:51 (GMT)
commit7a89e3c36cf919bf7c608456bcfd5d12978dc037 (patch)
tree0fec84a7585f1aa513fde6afa8eade6b66084fed /Source/cmInstallDirectoryGenerator.cxx
parent7d17ec2a2e840df17b0d5a647b850984e6ab5f38 (diff)
parent9db532f44dc014303e308e43b097175b8827508c (diff)
downloadCMake-7a89e3c36cf919bf7c608456bcfd5d12978dc037.zip
CMake-7a89e3c36cf919bf7c608456bcfd5d12978dc037.tar.gz
CMake-7a89e3c36cf919bf7c608456bcfd5d12978dc037.tar.bz2
Merge topic 'install-std-string'
9db532f44d cmInstall*Generator: std::string params Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !4241
Diffstat (limited to 'Source/cmInstallDirectoryGenerator.cxx')
-rw-r--r--Source/cmInstallDirectoryGenerator.cxx16
1 files changed, 9 insertions, 7 deletions
diff --git a/Source/cmInstallDirectoryGenerator.cxx b/Source/cmInstallDirectoryGenerator.cxx
index 259c7f7..7e3148a 100644
--- a/Source/cmInstallDirectoryGenerator.cxx
+++ b/Source/cmInstallDirectoryGenerator.cxx
@@ -2,6 +2,8 @@
file Copyright.txt or https://cmake.org/licensing for details. */
#include "cmInstallDirectoryGenerator.h"
+#include <utility>
+
#include "cmGeneratorExpression.h"
#include "cmInstallType.h"
#include "cmLocalGenerator.h"
@@ -11,17 +13,17 @@
cmInstallDirectoryGenerator::cmInstallDirectoryGenerator(
std::vector<std::string> const& dirs, const char* dest,
- const char* file_permissions, const char* dir_permissions,
- std::vector<std::string> const& configurations, const char* component,
- MessageLevel message, bool exclude_from_all, const char* literal_args,
+ std::string file_permissions, std::string dir_permissions,
+ std::vector<std::string> const& configurations, std::string const& component,
+ MessageLevel message, bool exclude_from_all, std::string literal_args,
bool optional)
- : cmInstallGenerator(dest, configurations, component, message,
+ : cmInstallGenerator(dest, configurations, component.c_str(), message,
exclude_from_all)
, LocalGenerator(nullptr)
, Directories(dirs)
- , FilePermissions(file_permissions)
- , DirPermissions(dir_permissions)
- , LiteralArguments(literal_args)
+ , FilePermissions(std::move(file_permissions))
+ , DirPermissions(std::move(dir_permissions))
+ , LiteralArguments(std::move(literal_args))
, Optional(optional)
{
// We need per-config actions if destination have generator expressions.