diff options
author | Eric NOULARD <eric.noulard@gmail.com> | 2012-05-14 18:26:15 (GMT) |
---|---|---|
committer | Eric NOULARD <eric.noulard@gmail.com> | 2012-05-14 18:26:15 (GMT) |
commit | 6ba055bacdce1cdf7a74008b980440027f275d94 (patch) | |
tree | 7f87b68f65c72a058dfd4cf544409fef0f7ecba9 /Source/CPack/cmCPackGenerator.h | |
parent | 75c0304a9ee646c8a408f713477fa3522ab1e8a8 (diff) | |
download | CMake-6ba055bacdce1cdf7a74008b980440027f275d94.zip CMake-6ba055bacdce1cdf7a74008b980440027f275d94.tar.gz CMake-6ba055bacdce1cdf7a74008b980440027f275d94.tar.bz2 |
CPack add easy possibility to warn about CPACK_SET_DESTDIR
CPackNSIS will only warn but sooner or later it should error out
Diffstat (limited to 'Source/CPack/cmCPackGenerator.h')
-rw-r--r-- | Source/CPack/cmCPackGenerator.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/Source/CPack/cmCPackGenerator.h b/Source/CPack/cmCPackGenerator.h index 55afb44..68ee3f2 100644 --- a/Source/CPack/cmCPackGenerator.h +++ b/Source/CPack/cmCPackGenerator.h @@ -190,6 +190,29 @@ protected: bool setDestDir, const char* tempInstallDirectory); /** + * The various level of support of + * CPACK_SET_DESTDIR used by the generator. + */ + enum CPackSetDestdirSupport { + /* the generator works with or without it */ + SETDESTDIR_SUPPORTED, + /* the generator works best if automatically handled */ + SETDESTDIR_INTERNALLY_SUPPORTED, + /* no official support, use at your own risk */ + SETDESTDIR_SHOULD_NOT_BE_USED, + /* officially NOT supported */ + SETDESTDIR_UNSUPPORTED + }; + + /** + * Does the CPack generator support CPACK_SET_DESTDIR? + * The default legacy value is 'true' generator + * have to override it in order change this. + * @return CPackSetDestdirSupport + */ + virtual enum CPackSetDestdirSupport SupportsSetDestdir() const; + + /** * Does the CPack generator support component installation?. * Some Generators requires the user to set * CPACK_<GENNAME>_COMPONENT_INSTALL in order to make this |