OS Manuals

/usr/bin/cpack

CMake 3.x is an open-source, cross-platform family of tools designed to build, test and package software

From cmake-3 3.31.12-r3 (os), captured 2026-11-05 by running cpack --help (exit 0). permalink

Usage

  cpack [options]

Options
  -G <generators>              = Override/define CPACK_GENERATOR
  -C <Configuration>           = Specify the project configuration
  -D <var>=<value>             = Set a CPack variable.
  --config <configFile>        = Specify the config file.
  -V,--verbose                 = Enable verbose output
  --trace                      = Put underlying cmake scripts in trace mode.
  --trace-expand               = Put underlying cmake scripts in expanded
                                 trace mode.
  --debug                      = Enable debug output (for CPack developers)
  -P <packageName>             = Override/define CPACK_PACKAGE_NAME
  -R <packageVersion>          = Override/define CPACK_PACKAGE_VERSION
  -B <packageDirectory>        = Override/define CPACK_PACKAGE_DIRECTORY
  --vendor <vendorName>        = Override/define CPACK_PACKAGE_VENDOR
  --preset                     = Read arguments from a package preset
  --list-presets               = List available package presets
  -h,-H,--help,-help,-usage,/? = Print usage information and exit.
  --version,-version,/V [<file>]
                               = Print version number and exit.
  --help <keyword> [<file>]    = Print help for one keyword and exit.
  --help-full [<file>]         = Print all help manuals and exit.
  --help-manual <man> [<file>] = Print one help manual and exit.
  --help-manual-list [<file>]  = List help manuals available and exit.
  --help-command <cmd> [<file>]= Print help for one command and exit.
  --help-command-list [<file>] = List commands with help available and exit.
  --help-commands [<file>]     = Print cmake-commands manual and exit.
  --help-module <mod> [<file>] = Print help for one module and exit.
  --help-module-list [<file>]  = List modules with help available and exit.
  --help-modules [<file>]      = Print cmake-modules manual and exit.
  --help-policy <cmp> [<file>] = Print help for one policy and exit.
  --help-policy-list [<file>]  = List policies with help available and exit.
  --help-policies [<file>]     = Print cmake-policies manual and exit.
  --help-property <prop> [<file>]
                               = Print help for one property and exit.
  --help-property-list [<file>]= List properties with help available and
                                 exit.
  --help-properties [<file>]   = Print cmake-properties manual and exit.
  --help-variable var [<file>] = Print help for one variable and exit.
  --help-variable-list [<file>]= List variables with help available and exit.
  --help-variables [<file>]    = Print cmake-variables manual and exit.

Generators
  7Z                           = 7-Zip file format
  DEB                          = Debian packages
  External                     = CPack External packages
  IFW                          = Qt Installer Framework
  INNOSETUP                    = Inno Setup packages
  NSIS                         = Null Soft Installer
  NSIS64                       = Null Soft Installer (64-bit)
  NuGet                        = NuGet packages
  RPM                          = RPM packages
  STGZ                         = Self extracting Tar GZip compression
  TBZ2                         = Tar BZip2 compression
  TGZ                          = Tar GZip compression
  TXZ                          = Tar XZ compression
  TZ                           = Tar Compress compression
  TZST                         = Tar Zstandard compression
  ZIP                          = ZIP file format
Options (25)
OptionDescriptionSource
-G generators= Override/define CPACK_GENERATORhelp
-C Configuration= Specify the project configurationhelp
-D var>=<value= Set a CPack variable.help
--config configFile= Specify the config file.help
-V, --verbose= Enable verbose outputhelp
--trace= Put underlying cmake scripts in trace mode.help
--trace-expand= Put underlying cmake scripts in expanded trace mode.help
--debug= Enable debug output (for CPack developers)help
-P packageName= Override/define CPACK_PACKAGE_NAMEhelp
-R packageVersion= Override/define CPACK_PACKAGE_VERSIONhelp
-B packageDirectory= Override/define CPACK_PACKAGE_DIRECTORYhelp
--vendor vendorName= Override/define CPACK_PACKAGE_VENDORhelp
--preset= Read arguments from a package presethelp
--list-presets= List available package presetshelp
--version, -version= Print version number and exit.help
--help keyword= Print help for one keyword and exit.help
--help-full file= Print all help manuals and exit.help
--help-manual-list file= List help manuals available and exit.help
--help-commands file= Print cmake-commands manual and exit.help
--help-module-list file= List modules with help available and exit.help
--help-modules file= Print cmake-modules manual and exit.help
--help-policy-list file= List policies with help available and exit.help
--help-policies file= Print cmake-policies manual and exit.help
--help-properties file= Print cmake-properties manual and exit.help
--help-variables file= Print cmake-variables manual and exit.help

Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.