1
0
mirror of https://github.com/Kitware/CMake.git synced 2025-10-14 10:47:59 +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

@@ -89,8 +89,8 @@ static void FinalAction(cmMakefile& makefile, std::string const& dest,
}
// Use a file install generator.
const char* no_permissions = "";
const char* no_rename = "";
const std::string no_permissions;
const std::string no_rename;
bool no_exclude_from_all = false;
std::string no_component =
makefile.GetSafeDefinition("CMAKE_INSTALL_DEFAULT_COMPONENT_NAME");
@@ -98,8 +98,8 @@ static void FinalAction(cmMakefile& makefile, std::string const& dest,
cmInstallGenerator::MessageLevel message =
cmInstallGenerator::SelectMessageLevel(&makefile);
makefile.AddInstallGenerator(cm::make_unique<cmInstallFilesGenerator>(
files, destination.c_str(), true, no_permissions, no_configurations,
no_component.c_str(), message, no_exclude_from_all, no_rename));
files, destination, true, no_permissions, no_configurations, no_component,
message, no_exclude_from_all, no_rename));
}
/**