But yeah, to point CMake to the compiler you want ...
# general
s
But yeah, to point CMake to the compiler you want to use, other than the default it normally takes (GCC), you want to pass
-DCMAKE_C_COMPILER=clang
-DCMAKE_CXX_COMPILER=clang++
, provided that clang is in the PATH.