CLion default toolchain in Setting Menu

Answered

Hello to All

As we know cmake can accept toolchain by -DCMAKE_TOOLCHAIN_FILE option in command line. so I specify all toolchain configuration in my own "toolchain.cmake" file and set it in "FILE->Setting->Buil,....->CMake" CLion menu, but I don't know why I have to set the default Toolchains setting in "File->Build,Execution, Development->Toolchains" ? CLion force me to set this configuration even I set my own toolchain. how can I tell CLion that I don't use the default Toolchain setting?

0
1 comment

Hi, Hadi.

The settings from CMAKE_TOOLCHAIN_FILE override the CLion's toolchain options, so you can use the default one. It's intended to be used when you don't have a dedicated toolchain file.

0

Please sign in to leave a comment.