diff options
author | Eric NOULARD <eric.noulard@gmail.com> | 2011-02-06 20:23:10 (GMT) |
---|---|---|
committer | Eric NOULARD <eric.noulard@gmail.com> | 2011-02-06 20:23:10 (GMT) |
commit | 494bb8ada786be70f39807a574bea6a1ef98654d (patch) | |
tree | e7cf92bee0c90b6c8a3dcb97e36d8152f6f8698c /Source/CPack/cmCPackGenerator.h | |
parent | 76976a59e9edc550fbf5b7b7ac4dbc381c02d139 (diff) | |
download | CMake-494bb8ada786be70f39807a574bea6a1ef98654d.zip CMake-494bb8ada786be70f39807a574bea6a1ef98654d.tar.gz CMake-494bb8ada786be70f39807a574bea6a1ef98654d.tar.bz2 |
CPackRPM honors all the different ways of packaging components
RPM cannot easily 'merge' differents directory into a single RPM
with shared prefix. So more flexibility has been added to generic
CPackGenerator in order to let the specific generator chose the
local installation directory for each component.
Diffstat (limited to 'Source/CPack/cmCPackGenerator.h')
-rw-r--r-- | Source/CPack/cmCPackGenerator.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/Source/CPack/cmCPackGenerator.h b/Source/CPack/cmCPackGenerator.h index f44a334..d4b1b16 100644 --- a/Source/CPack/cmCPackGenerator.h +++ b/Source/CPack/cmCPackGenerator.h @@ -132,6 +132,19 @@ protected: virtual int PrepareGroupingKind(); /** + * Some CPack generators may prefer to have + * CPack install all components belonging to the same + * [component] group to be install in the same directory. + * The default behavior is to install each component in + * a separate directory. + * @param[in] componentName the name of the component to be installed + * @return the name suffix the generator wants for the specified component + * default is "componentName" + */ + virtual std::string GetComponentInstallDirNameSuffix( + const std::string& componentName); + + /** * Package the list of files and/or components which * has been prepared by the beginning of DoPackage. * @pre @ref toplevel has been filled-in |