summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorEric NOULARD <eric.noulard@gmail.com>2011-11-05 13:41:23 (GMT)
committerEric NOULARD <eric.noulard@gmail.com>2012-01-03 15:47:35 (GMT)
commitd2c9626d5a2859a410dfed32fd1d55e1d386562c (patch)
tree2e094e2623d0387df2b1946817125d426c5481f9 /Source
parent40aedcbbaeddcb7e088c56e30f4252171e920baa (diff)
downloadCMake-d2c9626d5a2859a410dfed32fd1d55e1d386562c.zip
CMake-d2c9626d5a2859a410dfed32fd1d55e1d386562c.tar.gz
CMake-d2c9626d5a2859a410dfed32fd1d55e1d386562c.tar.bz2
Document undocumented (but existing) cpack options (fix #0010134)
Diffstat (limited to 'Source')
-rw-r--r--Source/CPack/cpack.cxx23
1 files changed, 23 insertions, 0 deletions
diff --git a/Source/CPack/cpack.cxx b/Source/CPack/cpack.cxx
index b1706e3..163f744 100644
--- a/Source/CPack/cpack.cxx
+++ b/Source/CPack/cpack.cxx
@@ -71,6 +71,25 @@ static const char * cmDocumentationOptions[][3] =
{"--config <config file>", "Specify the config file.",
"Specify the config file to use to create the package. By default "
"CPackConfig.cmake in the current directory will be used." },
+ {"--verbose,-V","enable verbose output","Run cpack with verbose output."},
+ {"--debug","enable debug output (for CPack developers)",
+ "Run cpack with debug output (for CPack developers)."},
+ {"-P <package name>","override/define CPACK_PACKAGE_NAME",
+ "If the package name is not specified on cpack commmand line then"
+ "CPack.cmake defines it as CMAKE_PROJECT_NAME"},
+ {"-R <package version>","override/define CPACK_PACKAGE_VERSION",
+ "If version is not specified on cpack command line then"
+ "CPack.cmake defines it from CPACK_PACKAGE_VERSION_[MAJOR|MINOR|PATCH]"
+ "look into CPack.cmake for detail"},
+ {"-B <package directory>","override/define CPACK_PACKAGE_DIRECTORY",
+ "The directory where CPack will be doing its packaging work."
+ "The resulting package will be found there. Inside this directory"
+ "CPack creates '_CPack_Packages' sub-directory which is the"
+ "CPack temporary directory."},
+ {"--vendor <vendor name>","override/define CPACK_PACKAGE_VENDOR",
+ "If vendor is not specified on cpack command line "
+ "(or inside CMakeLists.txt) then"
+ "CPack.cmake defines it with a default value"},
{0,0,0}
};
@@ -440,6 +459,10 @@ int main (int argc, char *argv[])
}
}
+ /* In this case we are building the documentation object
+ * instance in order to create appropriate structure
+ * in order to satisfy the appropriate --help-xxx request
+ */
if ( help )
{
doc.CheckOptions(argc, argv);