
Do not actually run configure and generate steps. Run cmake -build with no options for quick help. = Pass remaining options to the native tool. Tool so it can use the capabilities of the Original stdout/stderr handles to the native use-stderr = Don't merge stdout/stderr output and pass the clean-first = Build target 'clean' first, then build. config = For multi-configuration tools, choose. target = Build instead of default targets. This abstracts a native build tool's command-line interface with the following options: -build : Build a CMake-generated project binary tree.If H is specified, it will also display help for each variable. If A is specified, then it will display also advanced variables. Changing some of the variables may result in more variables being created. This will effectively display current CMake settings, which can then be changed with -D option. List cache variables will run CMake and list all the variables from the CMake cache that are not marked as INTERNAL or ADVANCED. -L: List non-advanced cached variables.The answers are used to set cmake cache values. The user is prompted to answer questions about the project configuration. Wizard mode runs cmake interactively without a GUI. On Windows: comspec, delete_regv, write_regv. In addition, some platform specific commands are available.

Commands available are: chdir, compare_files, copy, copy_directory, copy_if_different, echo, echo_append, environment, make_directory, md5sum, remove, remove_directory, rename, tar, time, touch, touch_nocreate. Run with -E help for the usage information. Suppress warnings that are meant for the author of the CMakeLists.txt files.Įnable warnings that are meant for the author of the CMakeLists.txt files.įor true platform independence, CMake provides a list of commands that can be used on all systems. See native build system documentation for allowed toolset names. This is supported only on specific generators: Some CMake generators support a toolset name to be given to the native build system to choose a compiler.
RECURSION TREE FOR WORD MAC GENERATOR
Possible generator names are specified in the Generators section. A generator is responsible for generating a particular build system. Use with care, you can make your CMakeCache.txt non-working.ĬMake may support multiple native build systems on certain platforms. The option may be repeated for as many cache entries as desired. This option may be used to remove one or more variables from the CMakeCache.txt file, globbing expressions using * and ? are supported.

This option may be used to specify a setting that takes priority over the project's default value. When cmake is first run in an empty build tree, it creates a CMakeCache.txt file and populates it with customizable settings for the project. The given file should be a CMake script containing SET commands that use the CACHE option, not a cache-format file. The loaded entries take priority over the project's default values. This option may be used to specify a file from which to load cache entries before the first pass through the project's cmake listfiles.

Project configuration settings may be specified on the command line with the -D option. It may be used to configure projects in scripts. The "cmake" executable is the CMake command-line interface.

Name cmake - Cross-Platform Makefile Generator. See the main CMake Documentation index for newer versions.
