Brooks Computing Systems - Jacksonville
Visit Brooks Computing Systems
Mainframes, Desktops & Web Sites
Okay, here is a well-structured explanation of CMake's help and command-line options based on the provided document
Okay, here is a well-structured explanation of CMake's help and command-line options based on the provided documentation snippet.
---
**CMake Command-Line Options and Help System**
CMake provides a comprehensive set of command-line options and a built-in help system to assist users in understanding its usage and configuration. These options can be used with the `cmake` command to retrieve information, control behavior, or invoke specific help topics.
**1. Basic Help and Information**
- **`--help`, `-help`, `-usage`, `-h`, `/?`**: Prints a general usage summary and available options, then exits. This is the most common way to get started with understanding the basic command-line interface.
- *Source:* `Usage describes the basic command line interface and its options.`
- **`--version`, `-version`, `/V`**: Shows the program name and version number banner, then exits. Optionally, writes the version to a specified file.
- *Source:* `--version,-version,/V [file] Show program name/version banner and exit.`
**2. Detailed Help Topics**
CMake allows requesting help on specific manuals, commands, modules, policies, or properties:
- **`--help-full`, `[file]`**: Prints all available CMake manuals (like `cmake-commands(7)`, `cmake-modules(7)`, etc.) in a readable format, then exits. Can optionally write the output to a file.
- *Source:* `--help-full [file] Print all help manuals and exit.`
- **`--help-manual`, `<man>`, `[file]`**: Prints the specified manual (e.g., `cmake-commands(7)`, `cmake-modules(7)`) in a readable format, then exits. Can optionally write the output to a file.
- *Source:* `--help-manual <man> [file] Print one help manual and exit.`
Related Images
- **`--help-manual-list`, `[file]`**: Lists all available CMake manuals for which help can be obtained using `--help-manual`, then exits. Can optionally write the output to a file.
- *Source:* `--help-manual-list [file] List help manuals available and exit.`
- **`--help-command`, `<cmd>`, `[file]`**: Prints help for a specific CMake command (e.g., `--build`, `-L`, `-P`) in a readable format, then exits. Can optionally write the output to a file.
- *Source:* `--help-command <cmd> [file] Print help for one command and exit.`
- **`--help-command-list`, `[file]`**: Lists all available CMake commands for which help can be obtained using `--help-command`, then exits. Can optionally write the output to a file.
- *Source:* `--help-command-list [file] List commands with help available and exit.`
- **`--help-commands`, `[file]`**: Prints the `cmake-commands(7)` manual (general CMake commands) in a readable format, then exits. Can optionally write the output to a file.
- *Source:* `--help-commands [file] Print cmake-commands manual and exit.`
- **`--help-module`, `<mod>`, `[file]`**: Prints help for a specific CMake module (e.g., `FindBoost.cmake`) in a readable format, then exits. Can optionally write the output to a file.
- *Source:* `--help-module <mod> [file] Print help for one module and exit.`
- **`--help-module-list`, `[file]`**: Lists all available CMake modules for which help can be obtained using `--help-module`, then exits. Can optionally write the output to a file.
- *Source:* `--help-module-list [file] List modules with help available and exit.`
- **`--help-modules`, `[file]`**: Prints the `cmake-modules(7)` manual (general CMake modules) in a readable format, then exits. Can optionally write the output to a file.
Quality, Reliability & Service Consultancy for Mainframes, Desktops & Web Sites