summaryrefslogtreecommitdiffstats
path: root/Source/CPack/cmCPackGenerator.h
diff options
context:
space:
mode:
authorEric NOULARD <eric.noulard@gmail.com>2012-03-30 15:07:06 (GMT)
committerEric NOULARD <eric.noulard@gmail.com>2012-05-20 20:04:32 (GMT)
commit2a34b579381cd73a18553c331d91b99a42292367 (patch)
treed4c0ae6331fcbd1b4122ed3f364875ffd861d692 /Source/CPack/cmCPackGenerator.h
parent77ec098b44ea036078a574754b6c935837a2fd75 (diff)
downloadCMake-2a34b579381cd73a18553c331d91b99a42292367.zip
CMake-2a34b579381cd73a18553c331d91b99a42292367.tar.gz
CMake-2a34b579381cd73a18553c331d91b99a42292367.tar.bz2
CPack allow RPM and DEB generator to be used on OSX.
More generally add the check for possible generator "activation" at runtime depending on a generator specific check. The dynamic behavior is currently implemented only for MacOS and should be fully backward compatible for other system. Inspired-By Tom Hughes <tomtheengineer@gmail.com>
Diffstat (limited to 'Source/CPack/cmCPackGenerator.h')
-rw-r--r--Source/CPack/cmCPackGenerator.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/Source/CPack/cmCPackGenerator.h b/Source/CPack/cmCPackGenerator.h
index 55afb44..78d2e24 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