1
0
mirror of https://github.com/Kitware/CMake.git synced 2025-10-15 12:16:40 +08:00

cmInstall*Generator: std::string params

Several construction parameters converted to std::string
Also made a few class members const
This commit is contained in:
Vitaly Stakhovsky
2020-01-20 13:00:00 -05:00
committed by Brad King
parent 941c09616b
commit 9db532f44d
17 changed files with 122 additions and 119 deletions

View File

@@ -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)
{