Merge topic 'cpack-one-component-only'
ed0b0630 CPack: Fix single component packaging
This commit is contained in:
commit
1f1b62b0e2
@ -1501,8 +1501,8 @@ bool cmCPackGenerator::WantsComponentInstallation() const
|
||||
{
|
||||
return (!IsOn("CPACK_MONOLITHIC_INSTALL")
|
||||
&& SupportsComponentInstallation()
|
||||
// check that package at least has components
|
||||
&& !(this->ComponentGroups.empty() || this->Components.empty()));
|
||||
// check that we have at least one group or component
|
||||
&& (!this->ComponentGroups.empty() || !this->Components.empty()));
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------
|
||||
|
Loading…
x
Reference in New Issue
Block a user