mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-07 22:59:56 -05:00
ENH: Added named component installation implementation. Installation behavior should be unchanged unless -DCOMPONENT=<name> is specified when cmake_install.cmake is invoked.
This commit is contained in:
@@ -22,9 +22,11 @@
|
||||
cmInstallFilesGenerator
|
||||
::cmInstallFilesGenerator(std::vector<std::string> const& files,
|
||||
const char* dest, bool programs,
|
||||
const char* permissions, const char* rename):
|
||||
const char* permissions,
|
||||
const char* component,
|
||||
const char* rename):
|
||||
Files(files), Destination(dest), Programs(programs),
|
||||
Permissions(permissions), Rename(rename)
|
||||
Permissions(permissions), Component(component), Rename(rename)
|
||||
{
|
||||
}
|
||||
|
||||
@@ -48,6 +50,8 @@ void cmInstallFilesGenerator::GenerateScript(std::ostream& os)
|
||||
? cmTarget::INSTALL_PROGRAMS
|
||||
: cmTarget::INSTALL_FILES), fi->c_str(),
|
||||
not_optional, no_properties,
|
||||
this->Permissions.c_str(), this->Rename.c_str());
|
||||
this->Permissions.c_str(),
|
||||
this->Component.c_str(),
|
||||
this->Rename.c_str());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user