Could you please try to use method #2 from http://www.cmake.org/Wiki/CMake_FAQ#How_do_I_use_a_different_compiler.3F pass -D CMAKE_C_COMPILER=<your_path_to_c_compiler> -D CMAKE_CXX_COMPILER=<your_path_to_cxx_compiler> to Preferences (Settings) | Build, Execution, Deployment | CMake | CMake options. Then corresponding CMake cache variables will be overwritten respectively.
Hi Jacub.
-D CMAKE_C_COMPILER=<your_path_to_c_compiler> -D CMAKE_CXX_COMPILER=<your_path_to_cxx_compiler>
to Preferences (Settings) | Build, Execution, Deployment | CMake | CMake options.
Then corresponding CMake cache variables will be overwritten respectively.