mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-11 16:32:14 -06:00
CPack: Fix single component packaging
Refine logic added in commit 0ffd3534 (CPack single component packaging,
2015-04-02). Component packaging should be enabled if either at least
one component or one group is set and should not require both.
This commit is contained in:
committed by
Brad King
parent
0ffd35340e
commit
ed0b063085
@@ -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()));
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user