CLion
 
Get CLion
You are viewing the documentation for an earlier version of CLion.

CMake profiles

Last modified: 11 January 2023

Settings required for building a CMake project are incorporated into a CMake profile. It includes toolchain and build type, as well as CMake options such as generators and environment variables. You can configure multiple profiles for your project in order to, for example, use different compilers or to build targets with differing settings.

To set up the profiles for your project, go to Settings | Build, Execution, Deployment | CMake. You can quickly access this dialog from Find Action (Ctrl+Shift+A) (search for CMake Settings) or assign a shortcut for it in Settings | Editor | Keymap.