For some reason, CMake's C and C++ compilers are set by default to /usr/bin/qcc
. I've followed this post and tried the command
cmake -D CMAKE_C_COMPILER=/usr/bin/gcc -D CMAKE_CXX_COMPILER=/usr/bin/g++
but I get the error
CMake Error: The source directory [current directory]/CMAKE_CXX_COMPILER=/usr/bin/g++" does not exist.
Why is CMake interpreting my commands as a directory, and what is the correct way to set CMake's compilers?