diff options
author | Domen Vrankar <domen.vrankar@gmail.com> | 2015-04-05 20:49:19 (GMT) |
---|---|---|
committer | Domen Vrankar <domen.vrankar@gmail.com> | 2015-04-05 20:49:41 (GMT) |
commit | 0ffd35340e5458882b4b9596a84dd7cdfeaecfbd (patch) | |
tree | 34b2a3ba34959d166de9343841f3a3ed87d8de14 /Source/CPack | |
parent | a3e2de3a312aa7db516a9127a96dd1d966a7fa47 (diff) | |
download | CMake-0ffd35340e5458882b4b9596a84dd7cdfeaecfbd.zip CMake-0ffd35340e5458882b4b9596a84dd7cdfeaecfbd.tar.gz CMake-0ffd35340e5458882b4b9596a84dd7cdfeaecfbd.tar.bz2 |
CPack single component packaging
RPM, DEB and archive packages were not created
in cases when CPACK_<generator>_COMPONENT_INSTALL
was set to ON and a single component existed.
Patch also changes CPackRPM test to implicitly
test for this case.
Diffstat (limited to 'Source/CPack')
-rw-r--r-- | Source/CPack/cmCPackGenerator.cxx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Source/CPack/cmCPackGenerator.cxx b/Source/CPack/cmCPackGenerator.cxx index 67005ef..995eb0d 100644 --- a/Source/CPack/cmCPackGenerator.cxx +++ b/Source/CPack/cmCPackGenerator.cxx @@ -1499,7 +1499,10 @@ bool cmCPackGenerator::SupportsComponentInstallation() const //---------------------------------------------------------------------- bool cmCPackGenerator::WantsComponentInstallation() const { - return (!IsOn("CPACK_MONOLITHIC_INSTALL") & SupportsComponentInstallation()); + return (!IsOn("CPACK_MONOLITHIC_INSTALL") + && SupportsComponentInstallation() + // check that package at least has components + && !(this->ComponentGroups.empty() || this->Components.empty())); } //---------------------------------------------------------------------- |