Using Intel-c++ with Clion
Answered
Hello all,
I a,m trying to use the Intel-C++ compiler with Clion, is there any way to configure a specific compiler for each project, for example, Intel-c++ compiler for project 1,2 and the GCC compiler for the remaining projects. (OS - Ubuntu)
Thanks in Advance.
Please sign in to leave a comment.
Hello!
Toolchain settings (File | Settings | Build, Execution, Deployment | Toolchains) are global, which means they apply to all projects. But you can select a specific toolchain for each project in a CMake profile (https://www.jetbrains.com/help/clion/cmake-profile.html), it's a project-level setting.
@...
Were you able to get the intel compiler to work with CLion?
Do you have any advice on where I can get details how to do that as well?
Thank you
CTutor
Yes, Actually instead of changing any of the CLion Settings, simply set the compiler in CMake i.e. do the following -
set(CMAKE_CXX_COMPILER /path/to/intel/compiler)
this should do