mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-28 01:49:23 -05: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")
|
return (!IsOn("CPACK_MONOLITHIC_INSTALL")
|
||||||
&& SupportsComponentInstallation()
|
&& SupportsComponentInstallation()
|
||||||
// check that package at least has components
|
// check that we have at least one group or component
|
||||||
&& !(this->ComponentGroups.empty() || this->Components.empty()));
|
&& (!this->ComponentGroups.empty() || !this->Components.empty()));
|
||||||
}
|
}
|
||||||
|
|
||||||
//----------------------------------------------------------------------
|
//----------------------------------------------------------------------
|
||||||
|
|||||||
Reference in New Issue
Block a user