InterviewSolution
| 1. |
What Compilers Can I Use? How Do I Change The Compiler? |
|
Answer» At PRESENT CLion supports GCC and Clang compilers, MSVC is available in the experimental mode and is guided by these two to get the libraries and headers PATHS. In the next releases we are planning to extend the list of compilers available in CLion. Since CLion relies on CMake build system. To change the compiler used in CLion, use method #2 from the official CMake documentation. Go to Preferences/Settings | Build, Execution, Deployment | CMake | CMake options and PASS the following commands: -D CMAKE_C_COMPILER= -D CMAKE_CXX_COMPILER= The corresponding CMake cache VARIABLES will be overwritten. At present CLion supports GCC and Clang compilers, MSVC is available in the experimental mode and is guided by these two to get the libraries and headers paths. In the next releases we are planning to extend the list of compilers available in CLion. Since CLion relies on CMake build system. To change the compiler used in CLion, use method #2 from the official CMake documentation. Go to Preferences/Settings | Build, Execution, Deployment | CMake | CMake options and pass the following commands: -D CMAKE_C_COMPILER= -D CMAKE_CXX_COMPILER= The corresponding CMake cache variables will be overwritten. |
|