diff options
author | Brad King <brad.king@kitware.com> | 2015-04-17 10:50:15 -0400 |
---|---|---|
committer | CMake Topic Stage <kwrobot@kitware.com> | 2015-04-17 10:50:15 -0400 |
commit | 1f1b62b0e2598554349dce14542a4c383f620ada (patch) | |
tree | f5ca40857416de5daec36f7a016ac4add878ab1e /Source/CPack | |
parent | 9efee16a7a092555d4bc40498a1acd957943a834 (diff) | |
parent | ed0b06308523e56f6df5de9abdb5211e908ce772 (diff) | |
download | cmake-1f1b62b0e2598554349dce14542a4c383f620ada.tar.gz |
Merge topic 'cpack-one-component-only'
ed0b0630 CPack: Fix single component packaging
Diffstat (limited to 'Source/CPack')
-rw-r--r-- | Source/CPack/cmCPackGenerator.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/CPack/cmCPackGenerator.cxx b/Source/CPack/cmCPackGenerator.cxx index 995eb0d979..4f370419c7 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())); } //---------------------------------------------------------------------- |