diff options
author | Clinton Stimpson <clinton@elemtech.com> | 2012-10-27 17:07:31 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2012-10-31 20:23:48 (GMT) |
commit | 4374441f3fa162931d7d59d2e18a7e0bd14de505 (patch) | |
tree | 81f8f96e14cd5ff5d3e4cb707841b302cab4ba23 /Source/CPack/cmCPackComponentGroup.h | |
parent | 4322816b6b15746c191d55fdbffc62778f9d052a (diff) | |
download | CMake-4374441f3fa162931d7d59d2e18a7e0bd14de505.zip CMake-4374441f3fa162931d7d59d2e18a7e0bd14de505.tar.gz CMake-4374441f3fa162931d7d59d2e18a7e0bd14de505.tar.bz2 |
PackageMaker: Enable postflight script in component mode (#12375)
Previously, setting CPACK_POSTFLIGHT_SCRIPT had no effect in
component mode, when CPACK_COMPONENTS_ALL was set.
In component mode, a .mpkg is created that contains multiple .pkg's.
Because postflight scripts only work in a .pkg, add another .pkg to the
.mpkg and put the postflight script in that.
This is the same approach taken by the PackageMaker GUI when adding
a postflight script to a metapackage.
Diffstat (limited to 'Source/CPack/cmCPackComponentGroup.h')
-rw-r--r-- | Source/CPack/cmCPackComponentGroup.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Source/CPack/cmCPackComponentGroup.h b/Source/CPack/cmCPackComponentGroup.h index 48d935c..abae372 100644 --- a/Source/CPack/cmCPackComponentGroup.h +++ b/Source/CPack/cmCPackComponentGroup.h @@ -42,7 +42,9 @@ public: class cmCPackComponent { public: - cmCPackComponent() : Group(0), TotalSize(0) { } + cmCPackComponent() : Group(0), IsRequired(true), IsHidden(false), + IsDisabledByDefault(false), IsDownloaded(false), + TotalSize(0) { } /// The name of the component (used to reference the component). std::string Name; |