OS Manuals

/usr/bin/cpack

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

From cmake 4.4.5-r0 (os), captured 2026-11-05 by running cpack --help (exit 0). permalink

Also provided by 2 other package versions
Usage

  cpack [options]

Options
  -G <generators>              = Override/define CPACK_GENERATOR
  -C <Configurations>          = Specify the project configuration(s)
  -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
  --presets-file               = Load package presets from the given file
  --list-presets               = List available package presets
  -h,-H,--help,-help,-usage,/? = Print usage information and exit.
  --version[=json-v1],-version[=json-v1],/V[=json-v1],/version[=json-v1] [<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-diagnostic <diag> [<file>]
                               = Print help for one diagnostic and exit.
  --help-diagnostic-list [<file>]
                               = List diagnostics with help available and
                                 exit.
  --help-diagnostics [<file>]  = Print cmake-diagnostics 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 with default compression
                                 algorithm
  7Z_BZ2                       = 7-Zip file format with BZip2 compression
  7Z_DEFLATE                   = 7-Zip file format with Deflate compression
  7Z_LZMA                      = 7-Zip file format with LZMA compression
  7Z_LZMA2                     = 7-Zip file format with LZMA2 compression
  7Z_PPMD                      = 7-Zip file format with PPMd compression
  7Z_STORE                     = 7-Zip file format without compression
  7Z_ZSTD                      = 7-Zip file format with Zstandard compression
  AppImage                     = AppImage packages
  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
  TAR                          = Tar no 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 with default compression
                                 algorithm
  ZIP_BZ2                      = ZIP file format with BZip2 compression
  ZIP_DEFLATE                  = ZIP file format with Deflate compression
  ZIP_LZMA                     = ZIP file format with LZMA compression
  ZIP_LZMA2                    = ZIP file format with LZMA2 compression
  ZIP_STORE                    = ZIP file format without compression
  ZIP_ZSTD                     = ZIP file format with Zstandard compression
Options (28)
OptionDescriptionSource
-G generators= Override/define CPACK_GENERATORhelp
-C Configurations= Specify the project configuration(s)help
-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
--presets-file= Load package presets from the given filehelp
--list-presets= List available package presetshelp
--version, -version json-v1= 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-diagnostic-list file= List diagnostics with help available and exit.help
--help-diagnostics file= Print cmake-diagnostics 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.