diff options
author | David Cole <david.cole@kitware.com> | 2012-05-24 17:38:13 (GMT) |
---|---|---|
committer | CMake Topic Stage <kwrobot@kitware.com> | 2012-05-24 17:38:13 (GMT) |
commit | 3e23da0688d68a6c5555a36e65bd6eaf9a435750 (patch) | |
tree | e2b7ea60a55b9f6d37981a71ab5a3f95e03e4aec /Source/CPack/cmCPackGenerator.h | |
parent | db1857e14250f1bbafd69f6bfb78f248101e164d (diff) | |
parent | 801ea70c08a15071a22149c8f8f829a34e628c6a (diff) | |
download | CMake-3e23da0688d68a6c5555a36e65bd6eaf9a435750.zip CMake-3e23da0688d68a6c5555a36e65bd6eaf9a435750.tar.gz CMake-3e23da0688d68a6c5555a36e65bd6eaf9a435750.tar.bz2 |
Merge topic 'CPack-activateRPM-DEB-onMacOS'
801ea70 Calm down Borland compiler warning about "always true"
2a34b57 CPack allow RPM and DEB generator to be used on OSX.
Diffstat (limited to 'Source/CPack/cmCPackGenerator.h')
-rw-r--r-- | Source/CPack/cmCPackGenerator.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Source/CPack/cmCPackGenerator.h b/Source/CPack/cmCPackGenerator.h index ddde8b5..6748512 100644 --- a/Source/CPack/cmCPackGenerator.h +++ b/Source/CPack/cmCPackGenerator.h @@ -63,6 +63,16 @@ public: cmSystemTools::OUTPUT_MERGE : cmSystemTools::OUTPUT_NONE; } /** + * Returns true if the generator may work on this system. + * Rational: + * Some CPack generator may run on some host and may not on others + * (with the same system) because some tools are missing. If the tool + * is missing then CPack won't activate (in the CPackGeneratorFactory) + * this particular generator. + */ + static bool CanGenerate() { return true; } + + /** * Do the actual whole package processing. * Subclass may redefine it but its usually enough * to redefine @ref PackageFiles, because in fact |