ubuntu下设置clion是使用clang和clang++
Posted 学者先要会疑
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了ubuntu下设置clion是使用clang和clang++相关的知识,希望对你有一定的参考价值。
链接 http://stackoverflow.com/questions/31725681/how-to-setup-clion-with-portable-clang-on-ubuntu
I got the answer from CLion blog and it works and here it goes.
To provide CMake compiler paths, go to Settings | Build, Execution, Deployment | CMake and pass as CMake options:
-D CMAKE_C_COMPILER=
-D CMAKE_CXX_COMPILER=
In case CMake fails to find some path to clang libs, etc. you can also set there environment variables:
CC=/usr/bin/clang
CXX=/usr/bin/clang++
以上是关于ubuntu下设置clion是使用clang和clang++的主要内容,如果未能解决你的问题,请参考以下文章
CLion开发环境的完全解析(QT开发?STM32?顺便速通cmake