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

Switching Compilers

Last modified: 23 October 2021

In CLion, you can use GCC and Clang compilers.

On Windows, the provided environment (Cygwin, MinGW, or Microsoft Visual C++) includes the compilers along with other tools.

There are two ways of changing the compiler for your CMake project, either in the toolchain settings or in the CMake profile settings. The difference between these two options is in their scope: toolchains are set per IDE, affecting all the projects you work with in CLion, while CMake options are configured for a particular CMake profile defined per project.