

If a shared and a local profile have the same name, the local one takes precedence and you will not see the shared one in the settings. Make sure to have different names for shared and local profiles. The Reload CMake project on editing CMakeLists.txt or other CMake configuration files option is common for all profiles and is stored in workspace.xml. Shared profiles are automatically moved to the bottom of the list. Select the profile you want to share and set the Share checkbox: The profiles' settings are stored in cmake.xml in the. You can share CMake profiles in VCS along with the project. Go to File | New Projects Setup | Settings for New Projects | Build, Execution, Deployment | CMake.Ĭonfigure the list of profiles to be used for all new projects by default. Select the desired profile before building, running, or debugging your application.Ĭlick or call one of the available Build actions.Īlso, build is performed by default before run or debug (you can change this in the configuration settings).Ĭonfigure default profiles for new projects

The enabled profiles are listed in the profile switcher. If required, change the profile name, build type, and other settings. Add a new profileĬlick, and CLion will add a new profile to the list. Use this shortcut to quickly open the CMake settings page.ĬMake profiles are configured per project. Go to Settings | Keymap and assign a shortcut for CMake settings. Press Control+Shift+A to open the Find Action dialog and search for CMake settings: Go to Settings | Build, Execution, Deployment | CMake. Access profile settingsĭo one of the following to open the CMake profile settings. You can configure multiple profiles for your project in order to, for example, use different compilers or to build targets with differing settings. It includes toolchain and build type, as well as CMake options such as generators and environment variables. Settings required for building a CMake project are incorporated into a CMake profile.
