How can I change permanently CMAKE_C_COMPILER for CLion?
File/Settings/Build, Execution, Deployment/Toolchains shows me this:
Use MinGW home: C:\MinGW
Use bundled CMake
OK Environment. MinGW 4.0
OK CMake 188.8.131.52 bundled
OK Make: C:\MinGW\bin\mingw32-make.exe
OK C Compiler: C:\MinGW\bin\gcc
OK CXX Compiler: C:\MinGW\bin\g++.exe
OK GDB: 7.8 bundled
But CMAKE_C_COMPILER contains C:/FPC/2.6.4/bin/i386-win32/gcc.exe. This gcc is from a working installation of Free Pascal. All other CMake variables contain the correct values. I have removed the C:/FPC/2.6.4/bin/i386-win32 directory from the PATH variable, but I still get an error message:
Error:The C compiler "C:/FPC/2.6.4/bin/i386-win32/gcc.exe" is not able to compile a simple test program.
CMake will not be able to correctly generate this project.
Does this mean, that I have to correct CMAKE_C_COMPILER in every project in the file CMakeLists.txt?
Thank you for helping me