Use this page to configure CMake in your project. The settings described here are project-related; this page is marked with icon.
|Automatically reload CMake project on editing||If this checkbox is selected, CLion automatically reloads a project while editing a CMake file. |
If this checkbox is not selected, after editing a CMake file a banner shows up, where you can choose to reload the current project manually, or enable automatic reload, which leads to selecting this checkbox:
However, if external changes take place (for example, version control update), the CMake project reloads anyway.
|Profiles list|| In this field, select a CMake profile to be generated. You can edit or delete the existing profile or create a new one. |
|Name||This field represents the name of the selected profile.|
|Build type||From this drop down list select the desired build type. The default type is Debug.|
|Toolchain||From this drop down list, select the desired toolchain. This list consists of toolchains you had created in the Toolchains settings dialog. If nothing is selected, the Default toolchain is used.|
|CMake options||In this text field, specify the additional CMake options to be passed to the CMake command. The options should be delimited with spaces.|
You can also press Shift+Enter or click to type the required options in the editor window, each option on a new line.
|Environment|| Click the button to invoke the Custom variables pane and select there the environment variables to be passed to the Generation phase of CMake. |
|Generation path|| |
Specify here the location of the generated CMake files. That could be either absolute (e.g. c:\CLion Projects\My Project\CMake Files\cmake-build-debug or relative to the current project root path (e.g cmake-build-debug):
This setting is saved in
|Build options|| In this text field, specify the options to be passed to the build tool used by CMake.|
Find more information about the available build options in the CMake documentation.
You can also click to type the required options in the editor window.
If nothing is specified, the default settings are used. Note, that default settings depend on the selected environment. For example, if make generator is selected, the default value is