summaryrefslogtreecommitdiffstats
path: root/Source/CPack/cmCPackGenerator.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2015-04-17 14:50:15 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2015-04-17 14:50:15 (GMT)
commit1f1b62b0e2598554349dce14542a4c383f620ada (patch)
treef5ca40857416de5daec36f7a016ac4add878ab1e /Source/CPack/cmCPackGenerator.cxx
parent9efee16a7a092555d4bc40498a1acd957943a834 (diff)
parented0b06308523e56f6df5de9abdb5211e908ce772 (diff)
downloadCMake-1f1b62b0e2598554349dce14542a4c383f620ada.zip
CMake-1f1b62b0e2598554349dce14542a4c383f620ada.tar.gz
CMake-1f1b62b0e2598554349dce14542a4c383f620ada.tar.bz2
Merge topic 'cpack-one-component-only'
ed0b0630 CPack: Fix single component packaging
Diffstat (limited to 'Source/CPack/cmCPackGenerator.cxx')
-rw-r--r--Source/CPack/cmCPackGenerator.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/CPack/cmCPackGenerator.cxx b/Source/CPack/cmCPackGenerator.cxx
index 995eb0d..4f37041 100644
--- a/Source/CPack/cmCPackGenerator.cxx
+++ b/Source/CPack/cmCPackGenerator.cxx
@@ -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()));
}
//----------------------------------------------------------------------