4 comments
Comment actions Permalink

Yes, Clang is supported. To set it up you need to put path to clang into CMAKE_C_COMPILER/CMAKE_CXX_COMPILER variables. This can be done either in CMakeLists.txt, or by providing command line options in CLion's CMake settings.

0
Comment actions Permalink

Am I supposed to install Cmake in conjunction with CLion? If Clang is the compiler, what do I need Cmake for?

0
Comment actions Permalink

CLion uses CMake as a build tool and a project model. In most cases the bundled binary of CMake can be used, so there is no need to install it.

0
Comment actions Permalink

Ok, I have downloaded llvm/clang with two directories, "llvm" and "build". These are in /documents/. But in cmake preferences it asks for a variable and value, not a path. I am not sure how to connect everything together. Can you provide more detail on what to do inside the cmake preferences? Thank you.

0

Please sign in to leave a comment.