diff options
author | Brad King <brad.king@kitware.com> | 2020-01-21 14:21:42 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2020-01-21 14:21:51 (GMT) |
commit | 7a89e3c36cf919bf7c608456bcfd5d12978dc037 (patch) | |
tree | 0fec84a7585f1aa513fde6afa8eade6b66084fed /Source/cmInstallScriptGenerator.cxx | |
parent | 7d17ec2a2e840df17b0d5a647b850984e6ab5f38 (diff) | |
parent | 9db532f44dc014303e308e43b097175b8827508c (diff) | |
download | CMake-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/cmInstallScriptGenerator.cxx')
-rw-r--r-- | Source/cmInstallScriptGenerator.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Source/cmInstallScriptGenerator.cxx b/Source/cmInstallScriptGenerator.cxx index ea29455..77680d2 100644 --- a/Source/cmInstallScriptGenerator.cxx +++ b/Source/cmInstallScriptGenerator.cxx @@ -3,6 +3,7 @@ #include "cmInstallScriptGenerator.h" #include <ostream> +#include <utility> #include <vector> #include "cmGeneratorExpression.h" @@ -11,13 +12,13 @@ #include "cmPolicies.h" #include "cmScriptGenerator.h" -cmInstallScriptGenerator::cmInstallScriptGenerator(const char* script, +cmInstallScriptGenerator::cmInstallScriptGenerator(std::string script, bool code, const char* component, bool exclude_from_all) : cmInstallGenerator(nullptr, std::vector<std::string>(), component, MessageDefault, exclude_from_all) - , Script(script) + , Script(std::move(script)) , Code(code) , AllowGenex(false) { |