diff options
author | Eric NOULARD <eric.noulard@gmail.com> | 2012-02-04 11:03:58 (GMT) |
---|---|---|
committer | David Cole <david.cole@kitware.com> | 2012-02-14 21:05:23 (GMT) |
commit | bafd8a9e79612c260af12f9a42c7e7cddf1f7da3 (patch) | |
tree | 58e466967e4dd711b5397ab3802a2cda22726eea /Source/CPack | |
parent | 543f1adfa4a8f2f38371512ffcb8c252332acb18 (diff) | |
download | CMake-bafd8a9e79612c260af12f9a42c7e7cddf1f7da3.zip CMake-bafd8a9e79612c260af12f9a42c7e7cddf1f7da3.tar.gz CMake-bafd8a9e79612c260af12f9a42c7e7cddf1f7da3.tar.bz2 |
Example of builtin variable documentation (i.e. only used in C++ source code).
Diffstat (limited to 'Source/CPack')
-rw-r--r-- | Source/CPack/cmCPackDocumentVariables.cxx | 22 |
1 files changed, 15 insertions, 7 deletions
diff --git a/Source/CPack/cmCPackDocumentVariables.cxx b/Source/CPack/cmCPackDocumentVariables.cxx index 6327152..68cde78 100644 --- a/Source/CPack/cmCPackDocumentVariables.cxx +++ b/Source/CPack/cmCPackDocumentVariables.cxx @@ -1,17 +1,25 @@ #include "cmCPackDocumentVariables.h" #include "cmake.h" -void cmCPackDocumentVariables::DefineVariables(cmake* ) +void cmCPackDocumentVariables::DefineVariables(cmake* cm) { // Subsection: variables defined/used by cpack, // which are common to all CPack generators -// cm->DefineProperty -// ("CPACK_PACKAGE_VENDOR", cmProperty::VARIABLE, -// "The name of the package vendor.", -// "If not specified, defaults to \"Humanity\"." -// "", false, -// "Variables common to all CPack generators"); + cm->DefineProperty + ("CPACK_PACKAGING_INSTALL_PREFIX", cmProperty::VARIABLE, + "The prefix used in the built package.", + "Each CPack generator has a default value (like /usr)." + " This default value may" + " be overwritten from the CMakeLists.txt or the cpack command line" + " by setting an alternative value.\n" + "e.g. " + " set(CPACK_PACKAGING_INSTALL_PREFIX \"/opt\")\n" + "This is not the same purpose as CMAKE_INSTALL_PREFIX which" + " is used when installing from the build tree without building" + " a package." + "", false, + "Variables common to all CPack generators"); // Subsection: variables defined/used by cpack, // which are specific to one CPack generator |