How to set project-specific (NOT global default) toolchains?


In many other JetBrain IDEs (like PyCharm and IntelliJ), you can set different compiler/interpreter for each specific project. This preference will be stored in the project and you'll get the correct toolchain chosen next time you open up the project.

In CLion this seems to be missing. You have to set a global default toolchain and it's used by every single project. If you set the default in one project and then open another project, the other project's toolchain will also change.


Hi Andy!

If you're talking about CMake projects, in each project you can create a CMake profile (project-specific setting) and select one of the available toolchains in it.


That seems to be the way to do it. Thanks!


Please sign in to leave a comment.