Use this page to configure CMake behavior in your project. The settings described here are project-related; this page is marked with icon.
|Automatically reload CMake project on editing||If this check box is selected, CLion automatically reloads a project while editing a CMake file. |
If this check box 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 check box:
However, if external changes take place (for example, version control update), the CMake project reloads anyway.
|Configuration tab|| In this tab, select a build configuration to be generated. You can add or delete the existing configurations or create a new one. |
|Configuration||In this drop down list select the desired build configuration. The default configuration is Debug. To add a configuration to the list, select it in the Configuration tab.|
|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
Microsoft Visual C++ compiler specific settings
The settings of this section are available only when Microsoft Visual C++ compiler support is enabled. Refer to our tutorial for details.
|Architecture||Select the target project architecture from the drop down list: x86, arm64, x86_arm, etc.|
|Platform||In this text field, specify the target project platform: store, uwp or leave it blank to use the default one.|
|Version||In this field, specify the respective Windows SDK name or leave it blank to use the default one.|
|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 setting