mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-06 05:40:54 -06:00
install: Implement new install(CODE|SCRIPT) option ALL_COMPONENTS
In a per-component installation the generated installation scripts are invoked once for each component. Per default custom installation script code added by install(CODE|SCRIPT) only runs for one specific component in this context. The new ALL_COMPONENTS option allows custom script code to be run once for each component being installed.
This commit is contained in:
@@ -33,7 +33,8 @@ public:
|
||||
cmInstallGenerator(std::string destination,
|
||||
std::vector<std::string> const& configurations,
|
||||
std::string component, MessageLevel message,
|
||||
bool exclude_from_all, cmListFileBacktrace backtrace);
|
||||
bool exclude_from_all, bool all_components,
|
||||
cmListFileBacktrace backtrace);
|
||||
~cmInstallGenerator() override;
|
||||
|
||||
cmInstallGenerator(cmInstallGenerator const&) = delete;
|
||||
@@ -65,6 +66,7 @@ public:
|
||||
std::string const& GetComponent() const { return this->Component; }
|
||||
|
||||
bool GetExcludeFromAll() const { return this->ExcludeFromAll; }
|
||||
bool GetAllComponentsFlag() const { return this->AllComponents; }
|
||||
|
||||
cmListFileBacktrace const& GetBacktrace() const { return this->Backtrace; }
|
||||
|
||||
@@ -79,5 +81,6 @@ protected:
|
||||
std::string const Component;
|
||||
MessageLevel const Message;
|
||||
bool const ExcludeFromAll;
|
||||
bool const AllComponents;
|
||||
cmListFileBacktrace const Backtrace;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user